fix: [backend:exercise] Gracefully catch user_id without emails
This commit is contained in:
parent
8a64f84140
commit
7ed839d391
1 changed files with 2 additions and 0 deletions
|
@ -322,6 +322,8 @@ def get_progress():
|
||||||
completion_for_users = get_completion_for_users()
|
completion_for_users = get_completion_for_users()
|
||||||
progress = {}
|
progress = {}
|
||||||
for user_id in completion_for_users.keys():
|
for user_id in completion_for_users.keys():
|
||||||
|
if user_id not in db.USER_ID_TO_EMAIL_MAPPING:
|
||||||
|
continue
|
||||||
progress[user_id] = {
|
progress[user_id] = {
|
||||||
'email': db.USER_ID_TO_EMAIL_MAPPING[user_id],
|
'email': db.USER_ID_TO_EMAIL_MAPPING[user_id],
|
||||||
'exercises': {},
|
'exercises': {},
|
||||||
|
|
Loading…
Reference in a new issue