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