From 3bef06bedb9b2dad691356863b7c227ad8ecbd67 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 6 Jul 2017 00:13:54 +0200 Subject: Generating ranking data in JSON format --- bin/generate-json.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/generate-json.sh (limited to 'bin') 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 -- cgit v1.2.3