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