diff --git a/judge/views/submission.py b/judge/views/submission.py index ee284c44aa..4a7ddec97e 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -251,10 +251,10 @@ def _get_queryset(self): contest_queryset = Contest.objects.filter(Q(authors=self.request.profile) | Q(curators=self.request.profile) | Q(scoreboard_visibility=Contest.SCOREBOARD_VISIBLE) | - Q(end_time__lt=timezone.now()), scoreboard_visibility__in=( - Contest.SCOREBOARD_AFTER_PARTICIPATION, - Contest.SCOREBOARD_AFTER_CONTEST, - )) \ + Q(end_time__lt=timezone.now(), scoreboard_visibility__in=( + Contest.SCOREBOARD_AFTER_PARTICIPATION, + Contest.SCOREBOARD_AFTER_CONTEST, + ))) \ .distinct() queryset = queryset.filter(Q(user=self.request.profile) | Q(contest_object__in=contest_queryset) |