Skip to content

Commit

Permalink
fix: committing to db writing
Browse files Browse the repository at this point in the history
  • Loading branch information
pgallardor committed Nov 3, 2023
1 parent e6b12b7 commit 6570e7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metadata_step/metadata_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def _format_detection(self, d: Dict, catalogs: Dict):
def _write_metadata_into_db(self, result: List[Dict]):
with self.db.session() as session:
insert_metadata(session, result)
session.commit()

# Output format: [{oid: OID, ss: SS_DATA, ...}]
def execute(self, messages: List[Dict]):
Expand Down

0 comments on commit 6570e7d

Please sign in to comment.