.
This commit is contained in:
+9
-9
@@ -94,16 +94,16 @@ def cid_scores(request, pk, passcode):
|
||||
longs_answers = LongsCidUserAnswer.objects.filter(cid=cid)
|
||||
sbas_answers = SbasCidUserAnswer.objects.filter(cid=cid)
|
||||
|
||||
if (
|
||||
not physics_answers
|
||||
and not anatomy_answers
|
||||
and not rapids_answers
|
||||
and not longs_answers
|
||||
and not sbas_answers
|
||||
):
|
||||
raise Http404("cid not found")
|
||||
# if (
|
||||
# not physics_answers
|
||||
# and not anatomy_answers
|
||||
# and not rapids_answers
|
||||
# and not longs_answers
|
||||
# and not sbas_answers
|
||||
# ):
|
||||
# raise Http404("cid not found")
|
||||
|
||||
kwargs = {"publish_results": True}
|
||||
#kwargs = {"publish_results": True}
|
||||
|
||||
if request.user.groups.filter(name="view_all_results").exists():
|
||||
kwargs = {}
|
||||
|
||||
Reference in New Issue
Block a user