mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 05:48:41 +00:00
fix: override existing files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2894f37719
commit
c3584fa9dc
@ -214,7 +214,7 @@ def update_problem_data(problem_id, problem_mtime):
|
|||||||
os.system('chmod 700 %s -R && rm -rf %s' % (quoted_fname, quoted_fname))
|
os.system('chmod 700 %s -R && rm -rf %s' % (quoted_fname, quoted_fname))
|
||||||
|
|
||||||
uoj_download('/problem/%d' % problem_id, copy_zip_name)
|
uoj_download('/problem/%d' % problem_id, copy_zip_name)
|
||||||
execute('cd %s && unzip -q %d.zip && rm %d.zip && chmod -w %d -R' % (uoj_judger_path('/data'), problem_id, problem_id, problem_id))
|
execute('cd %s && unzip -o -q %d.zip && rm %d.zip && chmod -w %d -R' % (uoj_judger_path('/data'), problem_id, problem_id, problem_id))
|
||||||
except Exception:
|
except Exception:
|
||||||
print_judge_client_status()
|
print_judge_client_status()
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
@ -233,7 +233,7 @@ def judge():
|
|||||||
|
|
||||||
with open(uoj_judger_path('/work/submission.conf'), 'w') as fconf:
|
with open(uoj_judger_path('/work/submission.conf'), 'w') as fconf:
|
||||||
uoj_download(submission['content']['file_name'], uoj_judger_path('/work/all.zip'))
|
uoj_download(submission['content']['file_name'], uoj_judger_path('/work/all.zip'))
|
||||||
execute("cd %s && unzip -q all.zip && rm all.zip" % pipes.quote(uoj_judger_path('/work')))
|
execute("cd %s && unzip -o -q all.zip && rm all.zip" % pipes.quote(uoj_judger_path('/work')))
|
||||||
for k, v in submission['content']['config']:
|
for k, v in submission['content']['config']:
|
||||||
print(k, v, file=fconf)
|
print(k, v, file=fconf)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user