mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
do not save user output
This commit is contained in:
parent
09c8819c4e
commit
d15c4aa60c
@ -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"),
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user