aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/populate_tranche_cashflows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/populate_tranche_cashflows.py b/python/populate_tranche_cashflows.py
index 1a7264d5..0e10001c 100644
--- a/python/populate_tranche_cashflows.py
+++ b/python/populate_tranche_cashflows.py
@@ -49,7 +49,7 @@ def insert_tranche_cashflows(
with dawndb.cursor() as c:
for tranche_id, principal, accrued in data:
c.execute(
- "INSERT INTO tranche_cashflows VALUES(%s, %s, %s, %s, %s)",
+ "INSERT INTO tranche_cashflows VALUES(%s, %s, %s, %s, %s) ON CONFLICT (tranche_cashflows_pkey) DO NOTHING",
(auction_date + bus_day, tranche_id, principal, accrued, "USD"),
)
dawndb.commit()