Another fix pdf_description save

This commit is contained in:
cuom1999 2023-03-12 03:25:23 -05:00
parent a4b06a354c
commit 580a4019c7
2 changed files with 9 additions and 11 deletions

View file

@ -151,11 +151,6 @@ class ProblemData(models.Model):
return problem_data_storage.exists("%s/init.yml" % self.problem.code)
def _update_code(self, original, new):
try:
problem_data_storage.rename(original, new)
except OSError as e:
if e.errno != errno.ENOENT:
raise
if self.zipfile:
self.zipfile.name = problem_directory_file_helper(new, self.zipfile.name)
if self.generator: