From ddb0337177129d6db34c76d157c0ee84d7df97b0 Mon Sep 17 00:00:00 2001 From: Vysakh Menon Date: Tue, 31 Dec 2024 09:21:45 -0800 Subject: [PATCH] 24708 inserting to event_insert table for ORGBOOK sync (#3152) --- colin-api/src/colin_api/models/filing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/colin-api/src/colin_api/models/filing.py b/colin-api/src/colin_api/models/filing.py index baa60068e..23c9ce184 100644 --- a/colin-api/src/colin_api/models/filing.py +++ b/colin-api/src/colin_api/models/filing.py @@ -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