Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt committed Sep 27, 2024
1 parent f2525e1 commit f76eb1c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions arches/management/commands/updateproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,15 @@ def update_to_v7_6(self):
)

if os.path.isfile(
os.path.join(
settings.APP_ROOT, "search_indexes", "sample_index.py"
)
os.path.join(settings.APP_ROOT, "search_indexes", "sample_index.py")
):
self.stderr.write(
"Existing sample_index.py detected. Skipping creation of sample_index.py",
)
else:
self.stdout.write(f"Creating /{settings.APP_NAME}/search_indexes/sample_index.py")
self.stdout.write(
f"Creating /{settings.APP_NAME}/search_indexes/sample_index.py"
)
src_path = os.path.join(settings.APP_ROOT, "search_indexes")
if not os.path.isdir(src_path):
os.mkdir(src_path)
Expand All @@ -327,7 +327,9 @@ def update_to_v7_6(self):
),
src_path,
)
self.stdout.write(f"Creating /{settings.APP_NAME}/search_indexes/__init__.py")
self.stdout.write(
f"Creating /{settings.APP_NAME}/search_indexes/__init__.py"
)
shutil.copy2(
os.path.join(
settings.ROOT_DIR,
Expand Down

0 comments on commit f76eb1c

Please sign in to comment.