summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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