diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/markit/rates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/markit/rates.py b/python/markit/rates.py index d8abee99..6845aaa7 100644 --- a/python/markit/rates.py +++ b/python/markit/rates.py @@ -90,7 +90,7 @@ def downloadMarkitIRData( ) # +1 for effective_date table_name = sql.Identifier(f"{currency}_{'OIS_' if ois_flag else ''}rates") insert_str = sql.SQL( - "INSERT INTO {}(effective_date, {}) VALUES({}) " "ON CONFLICT DO NOTHING" + "INSERT INTO {}(effective_date, {}) VALUES({}) ON CONFLICT DO NOTHING" ).format(table_name, names, values) with conn.cursor() as c: c.execute(insert_str, [effectiveasof] + [r[1] for r in instruments]) |
