This commit is contained in:
Ross
2021-12-17 18:35:54 +00:00
parent 5c53f7ea7a
commit 46cb01c6a2
+3 -3
View File
@@ -109,9 +109,9 @@ def exam_scores_cid(request, pk):
s = q.cid_user_answers.filter(cid=cid, exam__id=pk).first()
if not s:
# skip if no answer
user_answers_marks[cid].append(0)
user_answers[cid].append("")
by_question[q].append(("", 0))
user_answers_marks[cid].append((0,0,0,0,0))
user_answers[cid].append(("", "", "", "", ""))
by_question[q].append((("", 0),("", 0),("", 0),("", 0),("", 0),))
continue
ans = s.get_answer()