封榜后管理员看榜逻辑修改

This commit is contained in:
hebicheng 2020-08-31 16:18:25 +08:00
parent 6dda49592e
commit b579697c38

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}"