aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/risk_insight/static/tranches.js4
-rw-r--r--python/risk_insight/static/utils.js6
-rw-r--r--python/risk_insight/views.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/python/risk_insight/static/tranches.js b/python/risk_insight/static/tranches.js
index f9404edf..1cb73a10 100644
--- a/python/risk_insight/static/tranches.js
+++ b/python/risk_insight/static/tranches.js
@@ -12,7 +12,7 @@ function update_graph(g) {
var newdata = data["data"].map(function(e){
f = e.slice(1);
f.unshift(new Date(e[0]));
- return f});
+ return f;});
g.updateOptions({'file': newdata, 'labels': data['labels']});
});
};
@@ -35,7 +35,7 @@ document.addEventListener("DOMContentLoaded", function() {
}
update_graph(g2);
});
- })
+ });
update_graph(g1);
update_graph(g2);
});
diff --git a/python/risk_insight/static/utils.js b/python/risk_insight/static/utils.js
index 0b886e8f..a4ab6dd5 100644
--- a/python/risk_insight/static/utils.js
+++ b/python/risk_insight/static/utils.js
@@ -1,9 +1,9 @@
function $(s) {
- return( document.getElementById(s) )
+ return( document.getElementById(s) );
}
function encode_dict(d){
- var r = []
+ var r = [];
for(var k in d){
r.push(encodeURIComponent(k) + '=' + encodeURIComponent(d[k]));
}
@@ -17,6 +17,6 @@ function query(url, params, callback){
if( xhr.readyState === 4){
callback(xhr.responseText);
}
- }
+ };
xhr.send();
}
diff --git a/python/risk_insight/views.py b/python/risk_insight/views.py
index 7dcca7bf..92c8388d 100644
--- a/python/risk_insight/views.py
+++ b/python/risk_insight/views.py
@@ -116,7 +116,7 @@ def tranches():
@app.route("/indices.html")
def indices():
- return render_template("indices.html", series=[9, 10, 11, 13] + list(range(16, 33)))
+ return render_template("indices.html", series=[9, 10, 11, 13] + list(range(16, 34)))
@app.route("/")