aboutsummaryrefslogtreecommitdiffstats
path: root/python/risk_insight
diff options
context:
space:
mode:
Diffstat (limited to 'python/risk_insight')
-rw-r--r--python/risk_insight/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/risk_insight/views.py b/python/risk_insight/views.py
index b0766707..6dee31dc 100644
--- a/python/risk_insight/views.py
+++ b/python/risk_insight/views.py
@@ -84,8 +84,8 @@ def get_indices_quotes():
@app.route("/tranches.html")
def tranches():
with open(os.path.join(basedir, "code", "etc", "runs.yml")) as fh:
- runs = yaml.load(fh)
- series_list = sorted(list(set([int(name[2:]) for name in runs['name']])))
+ config = yaml.load(fh)
+ series_list = sorted(list(set([int(index[2:]) for index, tenor in config['runs']])))
return render_template("tranches.html", series=series_list)
@app.route("/indices.html")