From 8989ec040631c7e2fcc80fa016c7a9225af2823c Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Thu, 23 Oct 2025 10:22:02 +0800 Subject: [PATCH] fix --- problem/views/oj.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/problem/views/oj.py b/problem/views/oj.py index c4b7413..f173076 100644 --- a/problem/views/oj.py +++ b/problem/views/oj.py @@ -52,14 +52,9 @@ class ProblemAPI(APIView): queryset_values, ] for problem in problems: - if problem["rule_type"] == ProblemRuleType.ACM: - problem["my_status"] = acm_problems_status.get( - str(problem["id"]), {} - ).get("status") - else: - problem["my_status"] = oi_problems_status.get( - str(problem["id"]), {} - ).get("status") + problem["my_status"] = acm_problems_status.get( + str(problem["id"]), {} + ).get("status") def get(self, request): # 问题详情页