diff --git a/ippisite/ippidb/management/commands/update_mrc_files.py b/ippisite/ippidb/management/commands/update_mrc_files.py index bcaef9308b5dfb5768df951d1d5a0cc82a4f79e6..ec853aec7d9cbc437970025c5924abfe77904ba0 100644 --- a/ippisite/ippidb/management/commands/update_mrc_files.py +++ b/ippisite/ippidb/management/commands/update_mrc_files.py @@ -1,7 +1,6 @@ from django.core.management.base import AppCommand, CommandError from ippidb.management.commands import TaskOutWrapper from ippidb.models import Chain, InteractFile -from django import settings from django.core.files import File from celery import states import os @@ -77,7 +76,7 @@ class Command(AppCommand): storage_path = Chain.mrc_file.field.storage.path("content/mrc_files") else: storage_path = InteractFile.interact_file.field.storage.path("content/interact_files") - if not os.path.exists(storage_path) + if not os.path.exists(storage_path): os.makedirs(storage_path) list_files = glob.glob(os.path.join(mrcpath, pattern)) for data in list_files: