This commit is contained in:
Ross
2020-12-14 14:59:11 +00:00
parent 46d7908540
commit fc098f681c
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
{% if unmarked %} {% if unmarked %}
The following questions need marking The following questions need marking
{% for exam_index in unmarked %} {% for exam_index in unmarked %}
<a href="{% url 'anatomy:mark' exam.pk exam_index %}">{{ exam_index }}</a> <a href="{% url 'anatomy:mark' exam.pk exam_index %}">{{ exam_index|add:1 }}</a>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
+2 -1
View File
@@ -595,7 +595,8 @@ def exam_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":
unmarked.add(exam.get_question_index(q)) index = exam.get_question_index(q)
unmarked.add(index)
user_answers[cid].append(ans) user_answers[cid].append(ans)
user_answers_marks[cid].append(answer_score) user_answers_marks[cid].append(answer_score)
user_answers_and_marks[cid].append((ans, answer_score)) user_answers_and_marks[cid].append((ans, answer_score))