From: Marius Gavrilescu Date: Thu, 5 Feb 2015 15:28:54 +0000 (+0200) Subject: Fix update_status again X-Git-Tag: 5999.000_014~83 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=95594d6d74856958398509d5e83bff8547068a4f;p=gruntmaster-data.git Fix update_status again --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 308e056..00eeaf2 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -182,7 +182,7 @@ sub update_status { my $pb = $_->get_column('problem'); $private{$pb} //= $_->problem->is_private; next if $private{$pb}; - $hash{$pb, $_->get_column('owner')} = [$_->id, $_->result ? 0 : 1] for @jobs; + $hash{$pb, $_->get_column('owner')} = [$_->id, $_->result ? 0 : 1]; } my @problem_statuses = map { [split ($;), @{$hash{$_}} ] } keys %hash;