Commit b5aee625 authored by Skia's avatar Skia 🤘
Browse files

core/models: don't always repair every single file

parent 52832eed
Pipeline #1473 passed with stage
in 12 minutes and 54 seconds
......@@ -781,7 +781,7 @@ class SithFile(models.Model):
for c in self.children.all():
elif not self._check_path_consistence():
# First get future parent path and the old file name
# Prepend "." so that we match all relative handling of Django's
# file storage
......@@ -824,7 +824,7 @@ class SithFile(models.Model):
print("file path: %s" % file_path, end='')
print(" db path: %s" % db_path)
return False
print("%s OK (%s)" % (, file_path))
return True
def _check_fs(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment