From ee38c9725193c7c8b07e0200620636c25cf2f401 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 3 Mar 2015 16:44:35 +0200 Subject: [PATCH] Do not pass contest explicitly for /pb/ --- lib/Plack/App/Gruntmaster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) }, -- 2.39.2