Skip to content

Commit

Permalink
fix [BUG]: REBUILD DB #5
Browse files Browse the repository at this point in the history
  • Loading branch information
gosow9 committed Aug 13, 2024
1 parent 0323ea3 commit ffebc87
Show file tree
Hide file tree
Showing 4 changed files with 345 additions and 345 deletions.
4 changes: 3 additions & 1 deletion fits2db/adapters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ def upsert(self) -> None:
log.debug("Starting upsert operation.")
try:
if self.loader:
self.loader.upsert_file()
self.loader.upload_file()
log.info("Upsert operation completed successfully.")
self.loader.close_connection()
log.info("Connection closed")
else:
log.error("Loader is not initialized.")
except Exception as e:
Expand Down
Loading

0 comments on commit ffebc87

Please sign in to comment.