From: Marius Gavrilescu Date: Fri, 12 Dec 2014 12:54:53 +0000 (+0200) Subject: Remove archive standings X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7468a6a708467960a0ebb6db903a42779ad95a96;p=plack-app-gruntmaster.git Remove archive standings --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 3cb3809..4a89eda 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -135,14 +135,10 @@ sub dispatch_request{ }, }, - sub (/st/) { - response st => 'Standings', { st => [db->standings] } - }, - sub (/st/:contest) { response st => 'Standings', { - st => [ db->standings($_{contest}) ], - problems => [map { $_->problem } contest->contest_problems] + st => [ contest->standings ], + problems => [map { $_->problem } contest->contest_problems], } }, diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 4523055..b1f8dce 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -237,7 +237,6 @@ sub process_st { $tr->set_child_content(class => 'score', $st->{score}); $tr->fclass('user')->namedlink($st->{user}, $st->{user_name}); my $pbscore = $tr->fclass('pbscore'); - $pbscore->detach unless $st->{problems}; $pbscore->iter($pbscore => @{$st->{scores}}); }; $tree->find('tbody')->find('tr')->iter3($args{st}, $iter);