summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-07 00:48:29 +0200
committeremkael <emkael@tlen.pl>2017-09-07 00:48:29 +0200
commitde19dcc91dd149b542ed4946fae093ca30fafb5e (patch)
tree8d423616c4d6bcb339471f54e6c51aa46505d25d
parentf02f761f56b0c7d0392f0f36e6f51ff242141586 (diff)
Moving JSON data to http/data
-rwxr-xr-xbin/generate-json.sh2
-rw-r--r--http/data/group-data.json (renamed from http/res/ranking.json)0
-rw-r--r--http/res/group-ranking.js2
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) {