Skip to content

Commit

Permalink
24708 inserting to event_insert table for ORGBOOK sync (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot authored Dec 31, 2024
1 parent c830473 commit ddb0337
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions colin-api/src/colin_api/models/filing.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,14 @@ def _get_event_id(cls, cursor, corp_num: str, filing_dt: str, event_type: str =
filing_dt=filing_dt,
event_type=event_type
)
cursor.execute(
"""
INSERT INTO event_insert (event_id, corp_num, insert_date)
VALUES (:event_id, :corp_num, sysdate)
""",
event_id=event_id,
corp_num=corp_num
)
except Exception as err:
current_app.logger.error('Error in filing: Failed to create new event.')
raise err
Expand Down

0 comments on commit ddb0337

Please sign in to comment.