From 50673296b24e549d14292cab2cd019a3e73e058f Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 29 Jul 2021 20:09:19 +0100 Subject: [PATCH] . --- sbas/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbas/views.py b/sbas/views.py index 43cab86d..c3b75406 100644 --- a/sbas/views.py +++ b/sbas/views.py @@ -202,7 +202,7 @@ def exam_scores_cid_user(request, pk, sk): merged_ans = (ans, answer_score, correct_answer) answers_and_marks.append((q, merged_ans)) - total_score = sum(sum(i) for i in answers_marks) + total_score = sum(answers_marks) max_score = len(questions)