Added leaderboard first pass stuff

This commit is contained in:
Tom Bloor 2017-05-23 23:06:07 +01:00
parent 00e98f874a
commit bc12dbf8b0
6 changed files with 517 additions and 0 deletions

View file

@ -37,6 +37,18 @@ has framework => sub {
[ '50+' ],
]);
$schema->resultset('Leaderboard')->populate([
[ qw/ name type / ],
[ 'Daily Total', 'daily_total' ],
[ 'Daily Count', 'daily_count' ],
[ 'Weekly Total', 'weekly_total' ],
[ 'Weekly Count', 'weekly_count' ],
[ 'Monthly Total', 'monthly_total' ],
[ 'Monthly Count', 'monthly_count' ],
[ 'All Time Total', 'all_time_total' ],
[ 'All Time Count', 'all_time_count' ],
]);
return $t;
};