Fixed rank sending and added leaderboard creation script

This commit is contained in:
Finn 2017-07-20 11:56:24 +01:00
parent 4f09483f59
commit 16abfe34ea
2 changed files with 55 additions and 1 deletions

View file

@ -53,7 +53,7 @@ sub post_index {
user_count => $user_count,
global_sum => $global_sum || 0,
global_count => $global_count,
user_position => $current_user_position,
user_position => defined $current_user_position ? $current_user_position->position : 0,
});
}

54
make_leaderboards Normal file
View file

@ -0,0 +1,54 @@
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-01
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-02
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-03
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-04
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-05
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-06
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-07
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-08
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-09
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-10
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-11
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-12
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-13
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-14
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-15
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-16
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-17
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-18
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-19
./script/pear-local_loop leaderboard -t daily_total -d 2017-07-20
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-01
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-02
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-03
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-04
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-05
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-06
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-07
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-08
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-09
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-10
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-11
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-12
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-13
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-14
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-15
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-16
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-17
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-18
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-19
./script/pear-local_loop leaderboard -t daily_count -d 2017-07-20
./script/pear-local_loop leaderboard -t weekly_count -d 2017-07-03
./script/pear-local_loop leaderboard -t weekly_count -d 2017-07-10
./script/pear-local_loop leaderboard -t weekly_total -d 2017-07-03
./script/pear-local_loop leaderboard -t weekly_total -d 2017-07-10
./script/pear-local_loop leaderboard -t monthly_total -d 2017-05-01
./script/pear-local_loop leaderboard -t monthly_total -d 2017-06-01
./script/pear-local_loop leaderboard -t monthly_count -d 2017-05-01
./script/pear-local_loop leaderboard -t monthly_count -d 2017-06-01
./script/pear-local_loop leaderboard -t all_time_total -d 2017-07-13
./script/pear-local_loop leaderboard -t all_time_count -d 2017-07-13