This commit is contained in:
Ross
2021-09-25 18:55:58 +01:00
parent 29d8aac0d2
commit b004f00727
+4 -3
View File
@@ -199,9 +199,10 @@ def exam_scores_cid_user(request, pk, sk):
correct_answers = q.get_answers()
if not exam.publish_results and not view_all_results:
correct_answers = ("*****", "*****", "*****", "*****", "*****")
answer_scores = (0, 0, 0, 0, 0)
if not exam.publish_results:
if not view_all_results:
correct_answers = ("*****", "*****", "*****", "*****", "*****")
answer_scores = (0, 0, 0, 0, 0)
answers.append(ans)
answers_marks.append(answer_scores)