From: Marius Gavrilescu Date: Tue, 3 Mar 2015 14:44:35 +0000 (+0200) Subject: Do not pass contest explicitly for /pb/ X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=ee38c9725193c7c8b07e0200620636c25cf2f401;p=plack-app-gruntmaster.git Do not pass contest explicitly for /pb/ --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 35d788e..a3fde9e 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -165,7 +165,7 @@ sub dispatch_request{ }, sub (/pb/ + ?:owner~&:contest~&:private~) { forbid $_{private}; - response pb => 'Problems', {%{db->problem_list(%_)}, maybe contest => $_{contest}} + response pb => 'Problems', db->problem_list(%_) }, sub (/us/:user) { response us_entry => user->name, db->user_entry($_{user}) },