Fix: Fingerprint upload
This commit is contained in:
parent
e96ef38173
commit
f8de1cd3cf
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user