Remove archive standings
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 12 Dec 2014 12:54:53 +0000 (14:54 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 12 Dec 2014 12:54:53 +0000 (14:54 +0200)
lib/Plack/App/Gruntmaster.pm
lib/Plack/App/Gruntmaster/HTML.pm

index 3cb38097fb8052b76602c7bca35e62a4b58dbbf1..4a89edab6ef3f34a3bbd3f48d023f2d53eada852 100644 (file)
@@ -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],
                        }
                },
 
index 45230551f8a391bd2042b08a550e9fd33e8877ca..b1f8dce71eac1678c38d0058e1a41873de53987c 100644 (file)
@@ -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);
This page took 0.012116 seconds and 4 git commands to generate.