Skip to content

Commit

Permalink
Fix ranking filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cuom1999 committed Jun 24, 2024
1 parent 3bd55b9 commit a2b007c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions judge/views/contests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,8 @@ def _get_default_include_virtual(self):
def setup_filters(self):
if self.request.profile:
self.friend_only = bool(self.request.GET.get("friend") == "1")
else:
self.friend_only = False
self.include_virtual = bool(
self.request.GET.get("virtual", self._get_default_include_virtual()) == "1"
)
Expand Down

0 comments on commit a2b007c

Please sign in to comment.