Skip to content

Commit cd8dc5d

Browse files
committed
black formating, typos
1 parent 4a1c750 commit cd8dc5d

File tree

4 files changed

+559
-226
lines changed

4 files changed

+559
-226
lines changed

flowapp/scripts/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
def _load_config():
66
"""Load config.py from the current working directory."""
77
import os
8+
89
cwd = os.getcwd()
910
if cwd not in sys.path:
1011
sys.path.insert(0, cwd)
1112
try:
1213
import config
14+
1315
return config
1416
except ImportError:
1517
print("Error: config.py not found in the current directory.")

flowapp/scripts/db_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def init_db(reset=False):
2525
db.reflect()
2626
db.drop_all()
2727
from sqlalchemy import text
28+
2829
try:
2930
db.session.execute(text("DROP TABLE IF EXISTS alembic_version"))
3031
db.session.commit()

scripts/migrate_v0x_to_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def migrate_org_data():
6969
data_records = model.query.filter(model.org_id == catchall.id).all()
7070

7171
if not data_records:
72-
print(f" {model_name}: no records with org_id=0")
72+
print(f" {model_name}: no records assigned to catchall organization")
7373
continue
7474

7575
updated = 0

0 commit comments

Comments
 (0)