修复判题服务器多余字段的问题

This commit is contained in:
virusdefender 2016-05-28 20:21:44 +08:00
parent ed2b7779c2
commit eb0a3447c5
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61

View File

@ -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: