This commit is contained in:
Ross
2021-12-17 18:33:05 +00:00
parent 335a419dda
commit 31b16161ab
+3 -3
View File
@@ -117,9 +117,9 @@ def exam_scores_cid(request, pk):
s = q.cid_user_answers.filter(cid=cid, exam__id=pk).first() s = q.cid_user_answers.filter(cid=cid, exam__id=pk).first()
if not s: if not s:
# skip if no answer # skip if no answer
user_answers_marks[cid].append(0) user_answers_marks[cid].append((0,0,0,0,0))
user_answers[cid].append("") user_answers[cid].append(("", "", "", "", ""))
by_question[q].append(("", 0)) by_question[q].append((("", 0),("", 0),("", 0),("", 0),("", 0),))
continue continue
ans = s.get_answers() ans = s.get_answers()