Replace all leaderboard scripts with the single recalc script
This commit is contained in:
parent
2dfce6afd2
commit
e907ad37d4
4 changed files with 5 additions and 29 deletions
|
@ -1,11 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
||||||
|
|
||||||
YESTERDAY=`date -d "yesterday" +%F`
|
|
||||||
|
|
||||||
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t daily_total -d $YESTERDAY
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t daily_count -d $YESTERDAY
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t all_time_total -d $YESTERDAY
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t all_time_count -d $YESTERDAY
|
|
|
@ -1,9 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
||||||
|
|
||||||
YESTERDAY=`date -d "1 month ago" +%F`
|
|
||||||
|
|
||||||
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t monthly_total -d $YESTERDAY
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t monthly_count -d $YESTERDAY
|
|
5
script/recalc_leaderboards
Normal file
5
script/recalc_leaderboards
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
||||||
|
|
||||||
|
MOJO_MODE=production ./script/pear-local_loop recalc_leaderboards
|
|
@ -1,9 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
||||||
|
|
||||||
YESTERDAY=`date -d "1 week ago" +%F`
|
|
||||||
|
|
||||||
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t weekly_total -d $YESTERDAY
|
|
||||||
MOJO_MODE=production ./script/pear-local_loop leaderboard -t weekly_count -d $YESTERDAY
|
|
Reference in a new issue