This commit is contained in:
2025-10-23 10:22:02 +08:00
parent f0dc86265b
commit 8989ec0406

View File

@@ -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")
def get(self, request):
# 问题详情页