]> iEval git - gruntmaster-daemon.git/commitdiff
Only use pretests when contests are running
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Mar 2015 18:28:35 +0000 (20:28 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Mar 2015 18:28:35 +0000 (20:28 +0200)
lib/Gruntmaster/Daemon.pm

index fe252f786251c9ccf51350adb4df439323c47aa2..048321e3acd15d1be05ac064f24074319765105b 100644 (file)
@@ -121,7 +121,7 @@ sub process_job {
        my $limit_override = $job->result_source->schema->limits->find($meta->{problem}, $job->format);
        $meta->{timeout} = $limit_override->timeout if $limit_override;
        $meta->{tests} = decode_json $job->problem->tests if $meta->{runner} eq 'File';
-       delete $meta->{precnt} unless $job->contest;
+       delete $meta->{precnt} unless $job->contest && $job->contest->is_running;
        $meta->{testcnt} = $meta->{precnt} if $meta->{precnt};
 
        $meta->{files}{ver} = {
This page took 0.01725 seconds and 4 git commands to generate.