.
This commit is contained in:
+1
-1
@@ -1019,7 +1019,7 @@ def exam_scores_cid_user(request, pk, sk):
|
||||
user_answer = q.cid_user_answers.filter(cid=cid).first()
|
||||
|
||||
|
||||
if not user_answer:
|
||||
if not user_answer or user_answer is None:
|
||||
# skip if no answer
|
||||
answers_marks.append(0)
|
||||
answers.append("")
|
||||
|
||||
Reference in New Issue
Block a user