Fix (negate) solved in problem_status
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 12 Dec 2014 12:28:47 +0000 (14:28 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 12 Dec 2014 12:28:47 +0000 (14:28 +0200)
lib/Gruntmaster/Data.pm

index facc186af800afe1ca7822a59699a550db60b410..5318cbcfcab23f5bc7a3a1fe865492a5e245db97 100644 (file)
@@ -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 {
This page took 0.011451 seconds and 4 git commands to generate.