]> iEval git - gruntmaster-page.git/commitdiff
Pass contest to /pb/:problem response
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 23 Jan 2015 14:50:15 +0000 (16:50 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 23 Jan 2015 14:50:15 +0000 (16:50 +0200)
lib/Plack/App/Gruntmaster.pm

index 4f2d6e18f3d9a6d3f11c0dc14ebaab6604c346a9..991159bf02bef79973aeeac2f6659c78002ab0c8 100644 (file)
@@ -183,7 +183,7 @@ sub dispatch_request{
                                forbid !remote_user;
                                $privacy = 'private';
                        }
-                       response pb_entry => problem->name, db->problem_entry($_{problem}, $_{contest}, remote_user && remote_user->id);
+                       response pb_entry => problem->name, {%{db->problem_entry($_{problem}, $_{contest}, remote_user && remote_user->id)}, maybe contest => $_{contest}};
                },
                sub (/sol/:problem) {
                        forbid !problem->is_in_archive;
This page took 0.031689 seconds and 4 git commands to generate.