Skip to content

Commit

Permalink
Remove db creation to align with iiab#265
Browse files Browse the repository at this point in the history
  • Loading branch information
deldesir authored Oct 10, 2024
1 parent be85031 commit 8de6b9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cps/xb.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def _init_session_factory(self):
self.session = self.SessionFactory()

if not os.path.exists(XKLB_DB_FILE):
print(f"Database file not found at {XKLB_DB_FILE}, creating a new blank database.")
Base.metadata.create_all(self.engine)
print("New blank database created.")
print(f"Database file not found at {XKLB_DB_FILE}.")
else:
print(f"Database file found at {XKLB_DB_FILE}.")

Expand Down

0 comments on commit 8de6b9b

Please sign in to comment.