idac: hotfix profile import

This commit is contained in:
Dniel97 2024-03-26 22:44:50 +01:00
parent bfebe69a74
commit 9692aea87b
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08
2 changed files with 2 additions and 1 deletions

View File

@ -366,6 +366,7 @@ class IDACProfileFrontend(FE_Base):
content = await self.generate_all_tables_json(user_id)
self.logger.info(f"User {user_id} exported their IDAC data")
return Response(
content.encode("utf-8"),
200,

View File

@ -81,7 +81,7 @@ class IDACReader(BaseReader):
self.logger.warning("Invalid access code, please try again.")
# check if access code already exists, if not create a new profile
user_id = self.card_data.get_user_id_from_card(access_code)
user_id = await self.card_data.get_user_id_from_card(access_code)
if user_id is None:
choice = input("Access code does not exist, do you want to create a new profile? (Y/n): ")
if choice.lower() == "n":