X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=aa473d866c1376d349c722c053329af5a3338232;hb=42243f04db2175b78c83c50aa1aa82bc14d7a00b;hp=2c3b2a2c6c619b2f916976ad8b4cebbcbfa8d65e;hpb=90f613d3964e01ed8cc18ca07a89ffff87f72f4c;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 2c3b2a2..aa473d8 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -166,7 +166,8 @@ sub dispatch_request{ sub (/ed/:contest) { forbid !contest->is_finished; - 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) {