From: Marius Gavrilescu Date: Sun, 8 Mar 2015 07:57:24 +0000 (+0200) Subject: Allow filtering by result X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=23e3263818fa44f50dd5e9522d0787195435bfb5;p=gruntmaster-page.git Allow filtering by result --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index bd8a904..490fb44 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -147,7 +147,7 @@ sub dispatch_request{ sub (/us/) { response us => 'Users', {us => db->user_list} }, sub (/ct/ + ?:owner~) { response ct => 'Contests', db->contest_list(%_) }, - sub (/log/ + ?:contest~&:owner~&:page~&:problem~&:private~) { + sub (/log/ + ?:contest~&:owner~&:page~&:problem~&:private~&:result~) { forbid $_{private}; response log => 'Job list', {%{db->job_list(%_)}, maybe contest => $_{contest},} },