Remove unused cache
This commit is contained in:
parent
30fb38f52e
commit
167fa1ad66
2 changed files with 0 additions and 8 deletions
|
@ -570,13 +570,6 @@ class JudgeHandler(ZlibPacketHandler):
|
||||||
event.post("contest_%d" % participation.contest_id, {"type": "update"})
|
event.post("contest_%d" % participation.contest_id, {"type": "update"})
|
||||||
self._post_update_submission(submission.id, "grading-end", done=True)
|
self._post_update_submission(submission.id, "grading-end", done=True)
|
||||||
|
|
||||||
# Clean up submission source file (if any)
|
|
||||||
# source_file = cache.get(f"submission_source_file:{submission.id}")
|
|
||||||
# if source_file:
|
|
||||||
# filepath = os.path.join(settings.DMOJ_SUBMISSION_ROOT, source_file)
|
|
||||||
# if os.path.exists(filepath):
|
|
||||||
# os.remove(filepath)
|
|
||||||
|
|
||||||
def on_compile_error(self, packet):
|
def on_compile_error(self, packet):
|
||||||
logger.info(
|
logger.info(
|
||||||
"%s: Submission failed to compile: %s", self.name, packet["submission-id"]
|
"%s: Submission failed to compile: %s", self.name, packet["submission-id"]
|
||||||
|
|
|
@ -1118,7 +1118,6 @@ def problem_submit(request, problem, submission=None):
|
||||||
|
|
||||||
# Save a query
|
# Save a query
|
||||||
model.source = source
|
model.source = source
|
||||||
cache.set(f"submission_source_file:{model.id}", form.source_file_name, 3600)
|
|
||||||
model.judge(rejudge=False, judge_id=form.cleaned_data["judge"])
|
model.judge(rejudge=False, judge_id=form.cleaned_data["judge"])
|
||||||
|
|
||||||
return HttpResponseRedirect(
|
return HttpResponseRedirect(
|
||||||
|
|
Loading…
Reference in a new issue