From: Marius Gavrilescu Date: Sun, 8 Mar 2015 07:54:18 +0000 (+0200) Subject: Allow filtering job_list by result X-Git-Tag: 5999.000_014~62 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=028444306f9637e28d3395f9f91f1209edcb8c5b;p=gruntmaster-data.git Allow filtering job_list by result --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 60ab3e5..69e5d02 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -145,6 +145,7 @@ sub job_list { $rs = $rs->search({'me.private'=> 0}) unless $args{private}; $rs = $rs->search({'me.owner' => $args{owner}}) if $args{owner}; $rs = $rs->search({problem => $args{problem}}) if $args{problem}; + $rs = $rs->search({result => $args{result}}) if defined $args{result}; return { log => [map { my %params = $_->get_columns;