[Cards] Change all instances of uuid to key

This commit is contained in:
2026-06-27 15:06:05 +02:00
parent 17b99041db
commit eec575c619
7 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -28,11 +28,11 @@ def closeDoor():
def isDoorOpen():
return doorIsOpen
def checkAccess(uuid: str, db: Session):
def checkAccess(key: str, db: Session):
try:
current_weekday = datetime.datetime.weekday(datetime.date.today())
current_time = datetime.datetime.now()
card = db.exec(select(Card).where(Card.uuid == uuid)).one()
card = db.exec(select(Card).where(Card.key == key)).one()
for auth in card.group.accessauths:
logger.info(f"checking auth: {auth.name}")
for timetable in auth.timetables: