summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-06 00:13:54 +0200
committeremkael <emkael@tlen.pl>2017-07-06 00:13:54 +0200
commit3bef06bedb9b2dad691356863b7c227ad8ecbd67 (patch)
treebf88d06b1cfaf78cf065ad85559ee342e7075bf3 /bin
parent489eb40c0a29116ccce98291b3e174cb4531587b (diff)
Generating ranking data in JSON format
Diffstat (limited to 'bin')
-rwxr-xr-xbin/generate-json.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/generate-json.sh b/bin/generate-json.sh
new file mode 100755
index 0000000..c7bc473
--- /dev/null
+++ b/bin/generate-json.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+CONFIG=$1
+OUTPUT=$2
+LAST_DATE=`cat $CONFIG | jq -r '.[] | .date' | sort | tail -n1`
+python generate-json.py $LAST_DATE > $OUTPUT/res/ranking.json