.
This commit is contained in:
+2
-2
@@ -601,7 +601,7 @@ def exam_scores_cid2(request, pk):
|
|||||||
ans_by_question = defaultdict(dict)
|
ans_by_question = defaultdict(dict)
|
||||||
unmarked = set()
|
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)
|
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:
|
if not exam.exam_mode:
|
||||||
raise Http404("Packet not in exam mode")
|
raise Http404("Packet not in exam mode")
|
||||||
|
|
||||||
questions = exam.exam_questions.all()
|
questions = exam.exam_questions.all().prefetch_related("answers")
|
||||||
|
|
||||||
cids = (
|
cids = (
|
||||||
CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)
|
CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)
|
||||||
|
|||||||
Reference in New Issue
Block a user