Skip to content

Commit

Permalink
changed obj from staticmethod to dynamic default.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Mar 7, 2024
1 parent 8a971d1 commit ee66f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gameserver/views/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ def get_queryset(self):
cache.set(cache_key, queryset, 5 * 5) # Cache for 5 minutes (300 seconds)
return queryset

@staticmethod
def _get_contest(slug):
def _get_contest(self, slug):
cache_key = f"contest_{slug}_scoreboard_contest"
contest = cache.get(cache_key)
if not contest or self.request.GET.get('cache_reset', '').casefold() == "yaaaa":
Expand Down

0 comments on commit ee66f9a

Please sign in to comment.