File tree Expand file tree Collapse file tree 4 files changed +559
-226
lines changed
Expand file tree Collapse file tree 4 files changed +559
-226
lines changed Original file line number Diff line number Diff line change 55def _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." )
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments