This commit is contained in:
Ross
2021-12-10 23:15:30 +00:00
parent 0463ae0065
commit 55b6557415
+2 -1
View File
@@ -287,7 +287,8 @@ def exam_finish(request, pk, cid):
question_answer_tuples = [] question_answer_tuples = []
answer_count = 0 answer_count = 0
for q in questions: for q in questions:
if q in answer_question_map and answer_question_map[q].answer: #if q in answer_question_map and answer_question_map[q].answer:
if q in answer_question_map: # might need to improve this
question_answer_tuples.append((q, answer_question_map[q])) question_answer_tuples.append((q, answer_question_map[q]))
answer_count += 1 answer_count += 1
else: else: