aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/ack_checker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/ack_checker.py b/python/ack_checker.py
index a140fd72..a2c3dbff 100644
--- a/python/ack_checker.py
+++ b/python/ack_checker.py
@@ -35,7 +35,8 @@ def ack_check(date: datetime.date, conn):
with conn.cursor() as c:
c.execute(
- "INSERT INTO id_mapping VALUES(%s, %s, %s, %s)",
+ "INSERT INTO id_mapping VALUES(%s, %s, %s, %s) "
+ "ON CONFLICT DO NOTHING",
(trade_date, "CDS", serenitas_id, globeop_id),
)
if dealtype == "SwaptionDeal":