.
This commit is contained in:
+3
-3
@@ -924,14 +924,14 @@ def exam_scores_cid(request, pk):
|
||||
# Get user answer
|
||||
s = q.cid_user_answers.filter(cid=cid).first()
|
||||
|
||||
if s.normal:
|
||||
ans = "Normal"
|
||||
elif not s:
|
||||
if not s:
|
||||
# skip if no answer
|
||||
user_answers_marks[cid].append(0)
|
||||
user_answers[cid].append("")
|
||||
by_question[q].append(("", 0))
|
||||
continue
|
||||
elif s.normal:
|
||||
ans = "Normal"
|
||||
else:
|
||||
ans = s.answer
|
||||
answer_score = s.get_answer_score()
|
||||
|
||||
Reference in New Issue
Block a user