X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;ds=sidebyside;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=c590bc9e2309977edb92554854dd0e66c8605e8b;hb=d6a46d2ddead4ffd05642a3639a6640c6c94888b;hp=66b5b6eb4843d953d351762a43653d4f8f5cc248;hpb=e6d1bcd4c0c019a9b0c120370e801d5247221c36;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 66b5b6e..c590bc9 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -160,7 +160,8 @@ sub dispatch_request{ sub (/ed/:contest) { forbid contest->is_running; - response ed => 'Editorial of ' . contest->name, db->problem_list(contest => $_{contest}, solution => 1); + my $pblist = db->problem_list(contest => $_{contest}, solution => 1); + response ed => 'Editorial of ' . contest->name, {%$pblist, editorial => contest->editorial}; }, sub (/login) {