From 31b16161ab8a04ef5575358acb4c72d58b5e7440 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 17 Dec 2021 18:33:05 +0000 Subject: [PATCH] . --- physics/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/physics/views.py b/physics/views.py index 6215a525..19b9dbf3 100644 --- a/physics/views.py +++ b/physics/views.py @@ -117,9 +117,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_answers()