Filename in py not js
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
function lookup_rank_js(bundle_id) {
|
||||
loadJSON('/results/rank.json', function(response) {
|
||||
function lookup_rank_js(fname, bundle_id) {
|
||||
loadJSON(fname, function(response) {
|
||||
let json = JSON.parse(response);
|
||||
if (!json) { return; }
|
||||
let rank = json[bundle_id];
|
||||
|
||||
@@ -105,7 +105,7 @@ def gen_page(bundle_id, obj):
|
||||
{ HTML.p_download_json('data.json', bundle_id + '.json') }
|
||||
<script type="text/javascript" src="/static/lookup-rank.js"></script>
|
||||
<script type="text/javascript">
|
||||
lookup_rank_js('{bundle_id}');
|
||||
lookup_rank_js('/results/rank.json', '{bundle_id}');
|
||||
</script>''', title=name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user