From c314c8660eaef8acbf611612cadbb2c546df4475 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 4 Feb 2015 22:34:57 +0200 Subject: [PATCH] Skip private jobs in update_status without dying --- lib/Gruntmaster/Data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2