This commit is contained in:
Ross
2021-07-29 21:22:18 +01:00
parent 1060155c59
commit b5c396a226
+2 -2
View File
@@ -251,9 +251,9 @@ def exam_finish(request, pk, cid):
question_answer_tuples = [] question_answer_tuples = []
for q in questions: for q in questions:
if q in answer_question_map: if q in answer_question_map:
question_answer_tuples.append(q, answer_question_map[q]) question_answer_tuples.append((q, answer_question_map[q]))
else: else:
question_answer_tuples.append(q, None) question_answer_tuples.append((q, None))
if not exam.active: if not exam.active:
raise Http404("Exam not found") raise Http404("Exam not found")