This commit is contained in:
Ross
2022-03-30 21:33:41 +01:00
parent bb0caab8f2
commit 491efd565a
+2 -2
View File
@@ -601,7 +601,7 @@ def exam_scores_cid2(request, pk):
ans_by_question = defaultdict(dict)
unmarked = set()
questions = exam.exam_questions.all().prefectch_related("answers")
questions = exam.exam_questions.all()
cid_user_answers = CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)
@@ -862,7 +862,7 @@ def exam_scores_cid(request, pk):
if not exam.exam_mode:
raise Http404("Packet not in exam mode")
questions = exam.exam_questions.all()
questions = exam.exam_questions.all().prefetch_related("answers")
cids = (
CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)