This commit is contained in:
Ross
2021-09-08 18:53:41 +01:00
parent afc2746a70
commit 54ff4490d9
8 changed files with 65 additions and 35 deletions
+5 -1
View File
@@ -367,9 +367,13 @@ class ExamViews(View, LoginRequiredMixin):
questions = exam.exam_questions.all()
question_unmarked_map = []
for q in questions:
question_unmarked_map.append((q, q.get_unmarked_answer_count()))
# TODO: fix showing unmarked answer count from other exams...
return render(
request, "{}/mark_overview.html".format(self.app_name), {"exam": exam, "questions": questions}
request, "{}/mark_overview.html".format(self.app_name), {"exam": exam, "question_unmarked_map": question_unmarked_map}
)
@method_decorator(login_required)