diff --git a/judge/bridge/judge_handler.py b/judge/bridge/judge_handler.py index e36c9f8..1efd45a 100644 --- a/judge/bridge/judge_handler.py +++ b/judge/bridge/judge_handler.py @@ -570,13 +570,6 @@ class JudgeHandler(ZlibPacketHandler): event.post("contest_%d" % participation.contest_id, {"type": "update"}) 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): logger.info( "%s: Submission failed to compile: %s", self.name, packet["submission-id"] diff --git a/judge/views/problem.py b/judge/views/problem.py index 3022f8f..7fec6fb 100644 --- a/judge/views/problem.py +++ b/judge/views/problem.py @@ -1118,7 +1118,6 @@ def problem_submit(request, problem, submission=None): # Save a query 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"]) return HttpResponseRedirect(