diff options
author | emkael <emkael@tlen.pl> | 2017-09-07 00:48:29 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-09-07 00:48:29 +0200 |
commit | de19dcc91dd149b542ed4946fae093ca30fafb5e (patch) | |
tree | 8d423616c4d6bcb339471f54e6c51aa46505d25d | |
parent | f02f761f56b0c7d0392f0f36e6f51ff242141586 (diff) |
Moving JSON data to http/data
-rwxr-xr-x | bin/generate-json.sh | 2 | ||||
-rw-r--r-- | http/data/group-data.json (renamed from http/res/ranking.json) | 0 | ||||
-rw-r--r-- | http/res/group-ranking.js | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/bin/generate-json.sh b/bin/generate-json.sh index c7bc473..4af0f5a 100755 --- a/bin/generate-json.sh +++ b/bin/generate-json.sh @@ -2,4 +2,4 @@ CONFIG=$1 OUTPUT=$2 LAST_DATE=`cat $CONFIG | jq -r '.[] | .date' | sort | tail -n1` -python generate-json.py $LAST_DATE > $OUTPUT/res/ranking.json +python generate-json.py $LAST_DATE > $OUTPUT/data/group-data.json diff --git a/http/res/ranking.json b/http/data/group-data.json index 6e918c7..6e918c7 100644 --- a/http/res/ranking.json +++ b/http/data/group-data.json diff --git a/http/res/group-ranking.js b/http/res/group-ranking.js index a442dbb..40a8410 100644 --- a/http/res/group-ranking.js +++ b/http/res/group-ranking.js @@ -1,6 +1,6 @@ $(document).ready(function() { $('div.panel').eq(2).hide(); - $.getJSON('res/ranking.json', function(data) { + $.getJSON('data/group-data.json', function(data) { var minRating = Number.POSITIVE_INFINITY; for (var pid in data) { if (data[pid].score < minRating) { |