From f8de1cd3cf27c904c2c321a6b6f463ff8957a563 Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 5 Oct 2021 15:04:05 +0530 Subject: [PATCH] Fix: Fingerprint upload --- brewman/brewman/routers/fingerprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brewman/brewman/routers/fingerprint.py b/brewman/brewman/routers/fingerprint.py index 4054211e..472615cc 100644 --- a/brewman/brewman/routers/fingerprint.py +++ b/brewman/brewman/routers/fingerprint.py @@ -14,7 +14,6 @@ from ..core.security import get_current_active_user as get_user from ..db.session import SessionFuture from ..models.employee import Employee from ..models.fingerprint import Fingerprint -from ..routers import get_lock_info from ..schemas.user import UserToken @@ -28,7 +27,8 @@ def upload_prints( ): try: with SessionFuture() as db: - start, finish = get_lock_info(db) + start = date.today() - timedelta(days=90) + finish = date.today() + timedelta(days=7) employees = {} for id_, code in db.execute(select(Employee.id, Employee.code)).all(): employees[code] = id_