aboutsummaryrefslogtreecommitdiffstats
path: root/python/import_quotes.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/import_quotes.py')
-rw-r--r--python/import_quotes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/import_quotes.py b/python/import_quotes.py
index 589e9033..73250691 100644
--- a/python/import_quotes.py
+++ b/python/import_quotes.py
@@ -70,7 +70,7 @@ def get_current_tickers(database, workdate):
def insert_cds(database, workdate):
all_tickers, markit_bbg_mapping = get_current_tickers(database, workdate)
- filename = "cds eod {%Y%m%d}.csv".format(workdate)
+ filename = "cds eod {0:%Y%m%d}.csv".format(workdate)
colnames = ['Upfront'+tenor for tenor in ['6m', '1y', '2y', '3y', '4y', '5y', '7y', '10y']]
sqlstr = "INSERT INTO cds_quotes(date, curve_ticker, upfrontbid, upfrontask," \
"runningbid, runningask, source, recovery) VALUES(%s, %s, %s, %s, %s, %s, %s, %s)"