]> iEval git - gruntmaster-daemon.git/commitdiff
Fix purging of standings
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 13 Apr 2017 16:53:10 +0000 (19:53 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 13 Apr 2017 16:53:10 +0000 (19:53 +0300)
lib/Gruntmaster/Daemon.pm

index 7a9dea668726a655c55ae36951dae459fa6bac04..1c820dbe6429c508946e89c80fee3d77b76c1106 100644 (file)
@@ -129,8 +129,8 @@ sub process_job {
        my $timeout_override = db()->query('SELECT timeout FROM limits WHERE problem=? AND format=?', $job->{problem}, $job->{format})->list;
        $meta->{timeout} = $timeout_override if defined $timeout_override;
        $meta->{tests} = decode_json $pb->{tests} if $meta->{runner} eq 'File';
-       $job->{contest} &&= contest_entry($job->{contest});
-       delete $meta->{precnt} unless $job->{contest} && $job->{contest}{started} && !$job->{contest}{finished}; ## no critic (ProhibitNegativeExpressionsInUnlessAndUntilConditions)
+       my $contest = $job->{contest} && contest_entry($job->{contest});
+       delete $meta->{precnt} unless $contest && $contest->{started} && !$contest->{finished}; ## no critic (ProhibitNegativeExpressionsInUnlessAndUntilConditions)
        $meta->{testcnt} = $meta->{precnt} if $meta->{precnt};
 
        $meta->{files}{ver} = {
This page took 0.033992 seconds and 4 git commands to generate.