diff options
Diffstat (limited to 'python/risk_insight/views.py')
| -rw-r--r-- | python/risk_insight/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/risk_insight/views.py b/python/risk_insight/views.py index 7b9be999..58171214 100644 --- a/python/risk_insight/views.py +++ b/python/risk_insight/views.py @@ -48,7 +48,7 @@ def get_risk_numbers(): db = get_db() attach = get_attach_from_name(index, series) sqlstr = (sql.SQL("SELECT to_char(date, 'YYYY/MM/DD'), array_agg({}) FROM " \ - "(SELECT date, {} FROM risk_numbers_new rn JOIN tranche_quotes " \ + "(SELECT date, {} FROM risk_numbers rn JOIN tranche_quotes " \ "ON tranche_quotes.id=rn.tranche_id AND rn.index=%s " \ "AND rn.series=%s AND rn.tenor=%s ORDER BY rn.date, rn.attach) "\ "AS a GROUP BY date ORDER BY date"). |
