diff --git a/physics/views.py b/physics/views.py index 8289e027..e9667b7b 100644 --- a/physics/views.py +++ b/physics/views.py @@ -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)