.
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user