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,
});
}