clean code

This commit is contained in:
Cayo Puigdefabregas 2024-02-21 09:28:22 +01:00
parent 0247c5007d
commit ee43b7f974
1 changed files with 0 additions and 2 deletions

View File

@ -78,8 +78,6 @@ class Command(BaseCommand):
def create_schemas(self): def create_schemas(self):
schemas_files = os.listdir(settings.SCHEMAS_DIR) schemas_files = os.listdir(settings.SCHEMAS_DIR)
schemas = [x for x in schemas_files
if not Schemas.objects.filter(file_schema=x).exists()]
for x in schemas_files: for x in schemas_files:
if Schemas.objects.filter(file_schema=x).exists(): if Schemas.objects.filter(file_schema=x).exists():
continue continue