From: Marius Gavrilescu Date: Sat, 20 Dec 2014 15:02:27 +0000 (+0200) Subject: Fix job_list error X-Git-Tag: 5999.000_013~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d878fba367222b044c71afae62db10b11d46a253;p=gruntmaster-data.git Fix job_list error --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 61a8f4e..aa3a533 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -127,7 +127,7 @@ sub contest_entry { sub job_list { my ($self, %args) = @_; $args{page} //= 1; - my $rs = $self->jobs->search({private => 0}, {order_by => {-desc => 'me.id'}, prefetch => ['problem', 'owner'], rows => JOBS_PER_PAGE, page => $args{page}}); + my $rs = $self->jobs->search({'me.private' => 0}, {order_by => {-desc => 'me.id'}, prefetch => ['problem', 'owner'], rows => JOBS_PER_PAGE, page => $args{page}}); $rs = $rs->search({'me.owner' => $args{owner}}) if $args{owner}; $rs = $rs->search({contest => $args{contest}}) if $args{contest}; $rs = $rs->search({problem => $args{problem}}) if $args{problem};