]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Plack/App/Gruntmaster.pm
Add editorial header
[plack-app-gruntmaster.git] / lib / Plack / App / Gruntmaster.pm
index 3ec4e78300fd623a2c85457c0e5b07c715d2de18..425dc313779369d8d69fddc2f06117687d4055c4 100644 (file)
@@ -159,7 +159,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) {
This page took 0.022285 seconds and 4 git commands to generate.