From: Marius Gavrilescu Date: Wed, 4 Feb 2015 20:34:57 +0000 (+0200) Subject: Skip private jobs in update_status without dying X-Git-Tag: 5999.000_014~88 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=c314c8660eaef8acbf611612cadbb2c546df4475;p=gruntmaster-data.git Skip private jobs in update_status without dying --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 741061b..447a9f4 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -174,7 +174,7 @@ sub job_entry { sub update_status { my ($self) = @_; - my @jobs = $self->jobs->search({private => 0}, {cache => 1, prefetch => 'problem'})->all; + my @jobs = $self->jobs->search({'me.private' => 0}, {cache => 1, prefetch => 'problem'})->all; my %hash; for (@jobs) {