X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=991159bf02bef79973aeeac2f6659c78002ab0c8;hb=33ea2780d1269378ffd05309d27ada912eff8408;hp=4f2d6e18f3d9a6d3f11c0dc14ebaab6604c346a9;hpb=c016b64482812bf81dc02402ddc3aa80cfc25cf9;p=plack-app-gruntmaster.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 4f2d6e1..991159b 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -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;