Merge branch 'TBSliver/Leaderboard-Scripts' into development

This commit is contained in:
Tom Bloor 2017-07-25 19:53:16 +01:00
commit 98dfbd100c
3 changed files with 29 additions and 0 deletions

11
script/daily_leaderboards Executable file
View file

@ -0,0 +1,11 @@
#! /bin/bash
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
YESTERDAY=`date -d "yesterday" +%F`
./script/pear-local_loop leaderboard -t daily_total -d $YESTERDAY
./script/pear-local_loop leaderboard -t daily_count -d $YESTERDAY
./script/pear-local_loop leaderboard -t all_time_total -d $YESTERDAY
./script/pear-local_loop leaderboard -t all_time_count -d $YESTERDAY

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

9
script/weekly_leaderboards Executable file
View file

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