This commit is contained in:
Ross
2021-09-08 19:12:43 +01:00
parent 54ff4490d9
commit 0cdc0e1f88
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<ul id="question-mark-list">
{% for question, unmarked_count in question_unmarked_map %}
<li data-markcount={{unmarked_count}}><a href="{% url 'anatomy:mark' pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter }}:
{{ question }}</a><br /> {{ unmarked_count }}</li>
{{ question }}</a><br />Unmarked answers: {{ unmarked_count }}</li>
{% endfor %}
</ul>
</div>
+1 -1
View File
@@ -369,7 +369,7 @@ class ExamViews(View, LoginRequiredMixin):
question_unmarked_map = []
for q in questions:
question_unmarked_map.append((q, q.get_unmarked_answer_count()))
question_unmarked_map.append((q, int(q.get_unmarked_answer_count())))
# TODO: fix showing unmarked answer count from other exams...
return render(
+1 -1
View File
@@ -13,7 +13,7 @@
<ul id="question-mark-list">
{% for question, unmarked_count in question_unmarked_map %}
<li data-markcount={{unmarked_count}}><a href="{% url 'rapids:mark' pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter }}:
{{ question }}</a><br /> {{unmarked_count}}</li>
{{ question }}</a><br />Unmarked answers: {{unmarked_count}}</li>
{% endfor %}
</ul>
</div>