From: Marius Gavrilescu Date: Fri, 12 Dec 2014 12:28:47 +0000 (+0200) Subject: Fix (negate) solved in problem_status X-Git-Tag: 5999.000_012~7 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-data.git;a=commitdiff_plain;h=9bfb38e0b3d065be9f2d66304d4d293c5753b096 Fix (negate) solved in problem_status --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index facc186..5318cbc 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -199,7 +199,7 @@ sub update_status { my @jobs = $self->jobs->search(undef, {cache => 1})->all; my %hash; - $hash{$_->get_column('problem'), $_->get_column('owner')} = [$_->id, $_->result ? 1 : 0] for @jobs; + $hash{$_->get_column('problem'), $_->get_column('owner')} = [$_->id, $_->result ? 0 : 1] for @jobs; my @problem_statuses = map { [split ($;), @{$hash{$_}} ] } keys %hash; my @contest_statuses = map {