X-Git-Url: http://git.ieval.ro/?p=gruntmaster-data.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FData.pm;fp=lib%2FGruntmaster%2FData.pm;h=a9c128d0cbb330c914eefdd6a85024495db214e7;hp=c6b6f6f2097207bac5057593c9226c6f25e4bbda;hb=7f90c3b14dc4fef413b0203bddc0826cc3d6e49b;hpb=b35cbc0d6ca5baf03ffbeb2b9a375fa71f4d0ad3 diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index c6b6f6f..a9c128d 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -192,7 +192,10 @@ sub standings { $opens{$problem, $owner} = $time; } - my $jobs = $db->select('job_entry', '*', {contest => $ct->{id}}, 'id'); + # result IS NULL if job was never run + # result = -2 if job is being rerun + my %where = (contest => $ct->{id}, result => {'>=', 0}); + my $jobs = $db->select('job_entry', '*', \%where, 'id'); while (my $job = $jobs->hash) { my $open = $opens{$job->{problem}, $job->{owner}} // $ct->{start};