This commit is contained in:
Ross
2022-04-26 19:57:20 +01:00
parent bacf08b41b
commit 5ae62b808a
+2 -2
View File
@@ -1442,7 +1442,7 @@ def collection_scores_cid(request, pk):
ans = s.answer
answer_score = s.get_answer_score()
if answer_score == "unmarked":
if answer_score == "unmarked" or answer_score == None:
index = cases.index(q)
unmarked.add(index)
user_answers[cid].append(ans)
@@ -1456,7 +1456,7 @@ def collection_scores_cid(request, pk):
for user in user_answers_marks:
user_scores[user] = sum(
[i for i in user_answers_marks[user] if i != "unmarked"]
[i for i in user_answers_marks[user] if (i != "unmarked" and i != None)]
)
user_scores_normalised[user] = user_scores[user]