fix
This commit is contained in:
@@ -52,14 +52,9 @@ class ProblemAPI(APIView):
|
|||||||
queryset_values,
|
queryset_values,
|
||||||
]
|
]
|
||||||
for problem in problems:
|
for problem in problems:
|
||||||
if problem["rule_type"] == ProblemRuleType.ACM:
|
problem["my_status"] = acm_problems_status.get(
|
||||||
problem["my_status"] = acm_problems_status.get(
|
str(problem["id"]), {}
|
||||||
str(problem["id"]), {}
|
).get("status")
|
||||||
).get("status")
|
|
||||||
else:
|
|
||||||
problem["my_status"] = oi_problems_status.get(
|
|
||||||
str(problem["id"]), {}
|
|
||||||
).get("status")
|
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
# 问题详情页
|
# 问题详情页
|
||||||
|
|||||||
Reference in New Issue
Block a user