aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/Dawn/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 2cc5447b..c5b1f240 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -1,6 +1,5 @@
import datetime
import os
-import pandas as pd
import psycopg2
import redis
import socket
@@ -614,13 +613,13 @@ def get_bbg_id():
)
db = get_db()
with db.cursor() as c:
- c.execute(sqlstr1, (indextype, series, pd.datetime.today().date()))
+ c.execute(sqlstr1, (indextype, series, datetime.date.today()))
(redcode,) = c.fetchone()
c.execute(sqlstr2, (indextype, series, tenor))
maturity, coupon = c.fetchone()
return jsonify(
{
- "maturity": maturity.strftime("%Y-%m-%d"),
+ "maturity": str(maturity),
"redcode": redcode,
"coupon": coupon,
}