mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
修复判题服务器多余字段的问题
This commit is contained in:
parent
ed2b7779c2
commit
eb0a3447c5
@ -21,7 +21,6 @@ class AdminJudgeServerAPIView(APIView):
|
||||
data = serializer.data
|
||||
judge_server = JudgeServer.objects.create(name=data["name"], ip=data["ip"], port=data["port"],
|
||||
max_instance_number=data["max_instance_number"],
|
||||
left_instance_number=data["max_instance_number"],
|
||||
token=data["token"])
|
||||
return success_response(JudgesSerializer(judge_server).data)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user