fix: [backend:exercise] If restoration from backup failed, reset the state
This commit is contained in:
parent
4dc0156f23
commit
9af5572346
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ def restore_exercices_progress():
|
||||||
db.USER_ID_TO_AUTHKEY_MAPPING[int(user_id_str)] = authkey
|
db.USER_ID_TO_AUTHKEY_MAPPING[int(user_id_str)] = authkey
|
||||||
except:
|
except:
|
||||||
logger.info('Could not restore exercise progress')
|
logger.info('Could not restore exercise progress')
|
||||||
|
db.EXERCISES_STATUS = {}
|
||||||
|
db.SELECTED_EXERCISES = []
|
||||||
|
db.USER_ID_TO_EMAIL_MAPPING = {}
|
||||||
|
db.USER_ID_TO_AUTHKEY_MAPPING = {}
|
||||||
|
|
||||||
|
|
||||||
def is_validate_exercises(exercises: list) -> bool:
|
def is_validate_exercises(exercises: list) -> bool:
|
||||||
|
|
Loading…
Reference in a new issue