This commit is contained in:
BiCheng 2024-10-23 11:46:43 +08:00 committed by GitHub
commit c3f9043dff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,7 +132,7 @@ class ContestRankAPI(APIView):
else:
serializer = ACMContestRankSerializer
if force_refresh == "1" and is_contest_admin:
if is_contest_admin:
qs = self.get_rank()
else:
cache_key = f"{CacheKey.contest_rank_cache}:{self.contest.id}"