X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;fp=lib%2FPlack%2FApp%2FGruntmaster.pm;h=0cb7aabca2fa1b0dd392b33ea74b9f0b29d61900;hb=8ee0846af473b6b58ad0641406b56b255ca26366;hp=bfc2e27049b064f09bc4d7f6e1c4d4fb5b01c8bc;hpb=3c434a02d3cc1438e4944c2a143e4989ab0c74a6;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index bfc2e27..0cb7aab 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -163,7 +163,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) {