Skip private jobs in update_status without dying
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 20:34:57 +0000 (22:34 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 20:34:57 +0000 (22:34 +0200)
lib/Gruntmaster/Data.pm

index 741061bfc99409a1c6b47d67aac59ec6be9140ed..447a9f4119adaf77b2e07a156ec43af084741f8f 100644 (file)
@@ -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) {
This page took 0.010918 seconds and 4 git commands to generate.