aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/ack_checker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/ack_checker.py b/python/ack_checker.py
index 012bc6fb..51b5180c 100644
--- a/python/ack_checker.py
+++ b/python/ack_checker.py
@@ -73,6 +73,12 @@ def ack_check(date: datetime.date, conn):
"UPDATE spots SET globeop_id=%s WHERE id=%s",
(globeop_id, serenitas_id),
)
+ if dealtype == "TotalReturnSwapDeal":
+ with conn.cursor() as c:
+ c.execute(
+ "UPDATE trs SET globeop_id=%s WHERE id=%s",
+ (globeop_id, serenitas_id),
+ )
elif action == "Failed":
logger.warning(f"{serenitas_id} ({action}): {globeop_id} ")
conn.commit()