aboutsummaryrefslogtreecommitdiffstats
path: root/python/markit
diff options
context:
space:
mode:
Diffstat (limited to 'python/markit')
-rw-r--r--python/markit/import_quotes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/markit/import_quotes.py b/python/markit/import_quotes.py
index 5906ab97..ed76941f 100644
--- a/python/markit/import_quotes.py
+++ b/python/markit/import_quotes.py
@@ -249,7 +249,7 @@ def insert_cds(database, workdate: datetime.date):
except ValueError:
logging.error(f"couldn't build curve for {k.ticker}")
else:
- buf = sc.as_buffer(True)
+ buf = sc.as_bytes(True)
c.execute(
"INSERT INTO cds_curves VALUES(%s, %s, %s, %s, %s) "
"ON CONFLICT (date, company_id, seniority) "
@@ -309,7 +309,7 @@ def insert_cds(database, workdate: datetime.date):
defaulted = event_date
if defaulted:
sc.default_date = defaulted
- curve = sc.as_buffer(True)
+ curve = sc.as_bytes(True)
c.execute(
"INSERT INTO cds_curves VALUES(%s, %s, %s, %s, %s) "
"ON CONFLICT (date, company_id, seniority) "