mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
把比赛题目添加到前台以后添加标记以防止重复添加
This commit is contained in:
parent
68201a0dc7
commit
13526b109e
@ -288,6 +288,8 @@ class MakeContestProblemPublicAPIView(APIView):
|
||||
hint=problem.hint, created_by=problem.created_by,
|
||||
time_limit=problem.time_limit, memory_limit=problem.memory_limit,
|
||||
visible=False, difficulty=-1, source=problem.contest.title)
|
||||
problem.is_public = True
|
||||
problem.save()
|
||||
return success_response(u"创建成功")
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user