diff --git a/judge/views/contests.py b/judge/views/contests.py index 381dfc4..9fb4273 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -1097,9 +1097,8 @@ class ContestFinalRanking(LoginRequiredMixin, ContestRanking): def get_ranking_list(self): if not self.object.is_editable_by(self.request.user): raise Http404() - if self.object.format.has_hidden_subtasks: + if not self.object.format.has_hidden_subtasks: raise Http404() - return get_contest_ranking_list(self.request, self.object, show_final=True) diff --git a/judge/views/submission.py b/judge/views/submission.py index 152d6a9..164e690 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -783,7 +783,6 @@ class AllSubmissions(SubmissionsListBase): def get_context_data(self, **kwargs): context = super(AllSubmissions, self).get_context_data(**kwargs) - print(self.request.organization) context["dynamic_update"] = ( context["page_obj"].number == 1 ) and not self.request.organization