mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
封榜后管理员看榜逻辑修改
This commit is contained in:
parent
6dda49592e
commit
b579697c38
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user