Fix final ranking
This commit is contained in:
parent
5f12afdda9
commit
993309d56b
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue