This commit is contained in:
Ross
2022-04-09 11:05:02 +01:00
parent 4c6663ca7e
commit 04a4a71ab6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@
{% endfor %} {% endcomment %}
{% for cid in cids %}
{% with by_question|get_item:question|get_item:cid as ans_score %}
<td class="atlas-ans user-answer-score-{{ans_score.1}}" title="answer score: {{ans_score.1}}">{{ans_score.1}}</td>
<td class="atlas-ans user-answer-score-{{ans_score.1}}" title="feedbakc: {{ans_score.2}}">{{ans_score.1}}</td>
{% endwith %}
{% endfor %}
</tr>
+1 -1
View File
@@ -1459,7 +1459,7 @@ def collection_scores_cid(request, pk):
user_answers_marks[cid].append(answer_score)
user_answers_and_marks[cid].append((ans, answer_score))
by_question[q][cid] = (ans, answer_score)
by_question[q][cid] = (ans, answer_score, ans.feedback)
user_scores = {}
user_scores_normalised = {}