From 6ebb716f7b1816b00e678f0aef1cb70a8d79054e Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 29 Jul 2021 22:13:03 +0100 Subject: [PATCH] . --- sbas/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbas/views.py b/sbas/views.py index 77d25637..72dbac74 100644 --- a/sbas/views.py +++ b/sbas/views.py @@ -250,7 +250,7 @@ def exam_finish(request, pk, cid): question_answer_tuples = [] for q in questions: - if q in answer_question_map: + if q in answer_question_map and answer_question_map[q].answer: question_answer_tuples.append((q, answer_question_map[q])) else: question_answer_tuples.append((q, None))