do not save user output

This commit is contained in:
virusdefender 2017-12-09 22:34:05 +08:00
parent 09c8819c4e
commit d15c4aa60c
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ class JudgeDispatcher(DispatcherBase):
return
self.submission.statistic_info["score"] = score
def judge(self, output=True):
def judge(self):
server = self.choose_judge_server()
if not server:
data = {"submission_id": self.submission.id, "problem_id": self.problem.id}
@ -145,7 +145,7 @@ class JudgeDispatcher(DispatcherBase):
"max_cpu_time": self.problem.time_limit,
"max_memory": 1024 * 1024 * self.problem.memory_limit,
"test_case_id": self.problem.test_case_id,
"output": output,
"output": False,
"spj_version": self.problem.spj_version,
"spj_config": spj_config.get("config"),
"spj_compile_config": spj_config.get("compile"),

View File

@ -10,7 +10,7 @@ def delete_user_output(apps, schema_editor):
if "data" in item.info and isinstance(item.info["data"], list):
for index in range(len(item.info["data"])):
item.info["data"][index]["output"] = ""
item.save()
item.save()
class Migration(migrations.Migration):