This commit is contained in:
Ross
2021-12-14 22:12:32 +00:00
parent 770b96c30b
commit 33c9911bf4
2 changed files with 9 additions and 5 deletions
+4 -4
View File
@@ -103,11 +103,11 @@ def cid_scores(request, pk, passcode):
# ):
# raise Http404("cid not found")
# kwargs = {"publish_results": True}
kwargs = {}
#kwargs = {"publish_results": True}
kwargs = {"exam_mode": True}
if request.user.groups.filter(name="view_all_results").exists():
kwargs = {}
#if request.user.groups.filter(name="view_all_results").exists():
# kwargs = {}
physics_exam_ids = physics_answers.values_list("exam").distinct()
physics_exams = PhysicsExam.objects.filter(id__in=physics_exam_ids, **kwargs)