This commit is contained in:
Ross
2021-09-12 10:01:59 +01:00
parent f9fc597902
commit 239812b592
2 changed files with 17 additions and 2 deletions
+4 -1
View File
@@ -671,7 +671,10 @@ def mark_answer(request, exam_id, question_number, cid):
previous_cid = cid_list[cid_list.index(cid)-1]
try:
unmarked = question.get_unmarked_answers(exam_pk=exam.id, marker=request.user)
if exam.double_mark:
unmarked = question.get_unmarked_answers(exam_pk=exam.id, marker=request.user)
else:
unmarked = question.get_unmarked_answers(exam_pk=exam.id)
next_unmarked_id = unmarked[0].cid
if next_unmarked_id == cid:
next_unmarked_id = unmarked[1].cid