From: Marius Gavrilescu Date: Fri, 12 Dec 2014 12:17:03 +0000 (+0200) Subject: Use new standings API X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=dc7e3b7c32ab45ca72d1ec68e74d1aceab7fe041;p=plack-app-gruntmaster.git Use new standings API --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index ff998b9..a82cafd 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -216,7 +216,7 @@ sub process_st { my ($st, $tr) = @_; $tr->set_child_content(class => 'rank', $st->{rank}); $tr->set_child_content(class => 'score', $st->{score}); - $tr->fclass('user')->namedlink($st->{user}->id, $st->{user}->name); + $tr->fclass('user')->namedlink($st->{user}, $st->{user_name}); my $pbscore = $tr->fclass('pbscore'); $pbscore->detach unless $st->{problems}; $pbscore->iter($pbscore => @{$st->{scores}});