向判题服务器传递授权 token

This commit is contained in:
virusdefender 2015-12-07 17:35:28 +08:00
parent efee635173
commit f1449962e4

View File

@ -42,7 +42,7 @@ class JudgeDispatcher(object):
s = TimeoutServerProxy("http://" + judge_server.ip + ":" + str(judge_server.port), timeout=20)
data = s.run(self.submission.id, self.submission.language,
data = s.run(judge_server.token, self.submission.id, self.submission.language,
self.submission.code, self.time_limit, self.memory_limit, self.test_case_id)
# 编译错误
if data["code"] == 1: