This commit is contained in:
Ross
2022-04-26 19:59:47 +01:00
parent 5ae62b808a
commit a054ef3bd0
+3 -1
View File
@@ -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)