diff --git a/anatomy/templates/anatomy/exam_scores.html b/anatomy/templates/anatomy/exam_scores.html index ffd4930e..6acd001c 100644 --- a/anatomy/templates/anatomy/exam_scores.html +++ b/anatomy/templates/anatomy/exam_scores.html @@ -7,7 +7,7 @@ {% if unmarked %} The following questions need marking {% for exam_index in unmarked %} - {{ exam_index }} + {{ exam_index|add:1 }} {% endfor %} {% endif %} diff --git a/anatomy/views.py b/anatomy/views.py index 6fbb8966..d8531ac9 100644 --- a/anatomy/views.py +++ b/anatomy/views.py @@ -595,7 +595,8 @@ def exam_scores_cid(request, pk): ans = s.answer answer_score = s.get_answer_score() 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_marks[cid].append(answer_score) user_answers_and_marks[cid].append((ans, answer_score))