repair BASE_DIR

This commit is contained in:
thomas girod
2024-07-26 18:19:17 +02:00
parent 424639ea80
commit 63b6b262c6
5 changed files with 3 additions and 17 deletions

View File

@ -21,8 +21,6 @@
#
#
import os
from django.core.management.base import BaseCommand
from core.models import SithFile
@ -37,9 +35,6 @@ class Command(BaseCommand):
)
def handle(self, *args, **options):
root_path = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
)
files = SithFile.objects.filter(id__in=options["ids"]).all()
for f in files:
f._check_fs()