添加contest access api

This commit is contained in:
zemal committed 2017-07-20 15:52:11 +08:00
1 parent 8b85f86124
commit 17432b4c81
7 files changed
+60 -13

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ class ProblemTagAPI(APIView):
class ProblemAPI(APIView):
def get(self, request):
# 问题详情页
problem_id = request.GET.get("id")
problem_id = request.GET.get("problem_id")
if problem_id:
try:
problem = Problem.objects.get(_id=problem_id, visible=True)