This commit is contained in:
cuom1999 2022-09-22 17:33:31 -05:00
commit 1258d6dc25

View file

@ -152,19 +152,19 @@ class ProblemData(models.Model):
if e.errno != errno.ENOENT:
raise
if self.zipfile:
self.zipfile.name = _problem_directory_file(new, self.zipfile.name)
self.zipfile.name = problem_directory_file_helper(new, self.zipfile.name)
if self.generator:
self.generator.name = _problem_directory_file(new, self.generator.name)
self.generator.name = problem_directory_file_helper(new, self.generator.name)
if self.custom_checker:
self.custom_checker.name = _problem_directory_file(
self.custom_checker.name = problem_directory_file_helper(
new, self.custom_checker.name
)
if self.custom_checker:
self.custom_checker.name = _problem_directory_file(
self.custom_checker.name = problem_directory_file_helper(
new, self.custom_checker.name
)
if self.custom_validator:
self.custom_validator.name = _problem_directory_file(
self.custom_validator.name = problem_directory_file_helper(
new, self.custom_validator.name
)
self.save()