.
This commit is contained in:
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
{% if unmarked %}
|
{% if unmarked %}
|
||||||
The following questions need marking
|
The following questions need marking
|
||||||
{% for question in unmarked %}
|
{% for question, exam_index in unmarked %}
|
||||||
<a href="{% url 'anatomy:mark' exam.pk question.pk %}">{{ exam|get_question_index:question }}</a>
|
<a href="{% url 'anatomy:mark' exam.pk exam_index %}">{{ exam_index }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
+1
-1
@@ -595,7 +595,7 @@ 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(q)
|
unmarked.add((q, exam.get_question_index(q))
|
||||||
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user