forked from Dniel97/artemis
idac: hotfix profile import
This commit is contained in:
parent
bfebe69a74
commit
9692aea87b
@ -366,6 +366,7 @@ class IDACProfileFrontend(FE_Base):
|
|||||||
content = await self.generate_all_tables_json(user_id)
|
content = await self.generate_all_tables_json(user_id)
|
||||||
|
|
||||||
self.logger.info(f"User {user_id} exported their IDAC data")
|
self.logger.info(f"User {user_id} exported their IDAC data")
|
||||||
|
|
||||||
return Response(
|
return Response(
|
||||||
content.encode("utf-8"),
|
content.encode("utf-8"),
|
||||||
200,
|
200,
|
||||||
|
@ -81,7 +81,7 @@ class IDACReader(BaseReader):
|
|||||||
self.logger.warning("Invalid access code, please try again.")
|
self.logger.warning("Invalid access code, please try again.")
|
||||||
|
|
||||||
# check if access code already exists, if not create a new profile
|
# 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:
|
if user_id is None:
|
||||||
choice = input("Access code does not exist, do you want to create a new profile? (Y/n): ")
|
choice = input("Access code does not exist, do you want to create a new profile? (Y/n): ")
|
||||||
if choice.lower() == "n":
|
if choice.lower() == "n":
|
||||||
|
Loading…
Reference in New Issue
Block a user