mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
修复部分 bug
This commit is contained in:
parent
6aaa31386b
commit
5158db7f84
@ -21,8 +21,8 @@ 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"],
|
||||
token=data["token"],
|
||||
created_by=request.user)
|
||||
left_instance_number=data["max_instance_number"],
|
||||
token=data["token"])
|
||||
return success_response(JudgesSerializer(judge_server).data)
|
||||
else:
|
||||
return serializer_invalid_response(serializer)
|
||||
|
Loading…
Reference in New Issue
Block a user