From 7468a6a708467960a0ebb6db903a42779ad95a96 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 12 Dec 2014 14:54:53 +0200 Subject: [PATCH] Remove archive standings --- lib/Plack/App/Gruntmaster.pm | 8 ++------ lib/Plack/App/Gruntmaster/HTML.pm | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) 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); -- 2.39.2