Finished quiz and debugging

This commit is contained in:
2022-06-16 10:44:48 +01:00
parent b9d45f94fe
commit 4b08c830a1
15 changed files with 148 additions and 82 deletions

View File

@ -23,7 +23,7 @@ def _fetch_questions():
if time_limit:
_time_limit = int(time_limit)
if user_code:
time_adjustment = test.time_adjustments[user_code]
time_adjustment = test.adjustments[user_code]
_time_limit += time_adjustment
end_delta = timedelta(minutes=_time_limit)
end_time = datetime.utcnow() + end_delta
@ -40,7 +40,7 @@ def _fetch_questions():
return jsonify({
'time_limit': end_time,
'questions': questions,
'start_time': entry['start_time'],
'start_time': entry.start_time,
'time_adjustment': time_adjustment
}), 200