From: Marius Gavrilescu Date: Fri, 28 Feb 2014 07:37:44 +0000 (+0200) Subject: Show full names instead of usernames in standings X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=e16bffb9dda7489a0d50894da0be2b6822ae9210;p=plack-app-gruntmaster.git Show full names instead of usernames in standings --- diff --git a/lib/Gruntmaster/Page/St.pm b/lib/Gruntmaster/Page/St.pm index 5e256b1..407e87a 100644 --- a/lib/Gruntmaster/Page/St.pm +++ b/lib/Gruntmaster/Page/St.pm @@ -58,7 +58,7 @@ sub _generate{ my @st = sort { $b->{score} <=> $a->{score} or $a->{user} cmp $b->{user}} map { my $user = $_; +{ - user => $user, + user => user_name $user, score => sum (values $scores{$user}), scores => [map { $scores{$user}{$_} // '-'} @problems], problems => $Gruntmaster::Data::contest,