Added leaderboard generating scripts

This commit is contained in:
Tom Bloor 2017-07-25 19:53:04 +01:00
parent 4f72b454bc
commit b4513f487c
3 changed files with 29 additions and 0 deletions

9
script/monthly_leaderboards Executable file
View file

@ -0,0 +1,9 @@
#! /bin/bash
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
YESTERDAY=`date -d "1 month ago" +%F`
./script/pear-local_loop leaderboard -t monthly_total -d $YESTERDAY
./script/pear-local_loop leaderboard -t monthly_count -d $YESTERDAY