From b579697c3877d3ec5f15cb6444d56a3c78ecb426 Mon Sep 17 00:00:00 2001 From: hebicheng Date: Mon, 31 Aug 2020 16:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E6=A6=9C=E5=90=8E=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E7=9C=8B=E6=A6=9C=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest/views/oj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/views/oj.py b/contest/views/oj.py index 4164ec332..569627058 100644 --- a/contest/views/oj.py +++ b/contest/views/oj.py @@ -132,7 +132,7 @@ def get(self, request): 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}"