.
This commit is contained in:
+2
-2
@@ -1442,7 +1442,7 @@ def collection_scores_cid(request, pk):
|
|||||||
ans = s.answer
|
ans = s.answer
|
||||||
|
|
||||||
answer_score = s.get_answer_score()
|
answer_score = s.get_answer_score()
|
||||||
if answer_score == "unmarked":
|
if answer_score == "unmarked" or answer_score == None:
|
||||||
index = cases.index(q)
|
index = cases.index(q)
|
||||||
unmarked.add(index)
|
unmarked.add(index)
|
||||||
user_answers[cid].append(ans)
|
user_answers[cid].append(ans)
|
||||||
@@ -1456,7 +1456,7 @@ def collection_scores_cid(request, pk):
|
|||||||
for user in user_answers_marks:
|
for user in user_answers_marks:
|
||||||
|
|
||||||
user_scores[user] = sum(
|
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]
|
user_scores_normalised[user] = user_scores[user]
|
||||||
|
|||||||
Reference in New Issue
Block a user