aboutsummaryrefslogtreecommitdiffstats
path: root/python/quote_parsing/parse_emails.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/quote_parsing/parse_emails.py')
-rw-r--r--python/quote_parsing/parse_emails.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py
index 1a600d19..e02918df 100644
--- a/python/quote_parsing/parse_emails.py
+++ b/python/quote_parsing/parse_emails.py
@@ -911,9 +911,7 @@ def write_todb(swaption_stack, index_data, conn):
cols = [sql.Identifier(e) for e in (*swaption_stack.columns, "ref_id")]
sql_quotes = sql.SQL(
"INSERT INTO swaption_quotes({}) VALUES {} ON CONFLICT DO NOTHING"
- ).format(
- sql.SQL(", ").join(map(sql.Identifier, cols)), [sql.PlaceHolder()] * len(cols)
- )
+ ).format(sql.SQL(", ").join(cols), [sql.Placeholder()] * len(cols))
index_data["expiry"] = pd.to_datetime(index_data.expiry)
with conn.cursor() as c:
for t in index_data.itertuples(index=False):