From a054ef3bd03138c960723eb27064f21dbf4b20fb Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 26 Apr 2022 19:59:47 +0100 Subject: [PATCH] . --- atlas/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atlas/views.py b/atlas/views.py index 74c446d6..f3b35962 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -1421,6 +1421,8 @@ def collection_scores_cid(request, pk): cids = set() + case_list = list(cases) + # Loop through all candidates for cid_user_answer in cid_user_answers: # Convoluted (probably...) @@ -1443,7 +1445,7 @@ def collection_scores_cid(request, pk): answer_score = s.get_answer_score() if answer_score == "unmarked" or answer_score == None: - index = cases.index(q) + index = case_list.index(q) unmarked.add(index) user_answers[cid].append(ans) user_answers_marks[cid].append(answer_score)