.
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<ul id="question-mark-list">
|
||||
{% 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>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user