]> 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 2c3b2a2c6c619b2f916976ad8b4cebbcbfa8d65e..aa473d866c1376d349c722c053329af5a3338232 100644 (file)
@@ -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) {
This page took 0.02098 seconds and 4 git commands to generate.