Do not use removed functions
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 10 Mar 2015 10:37:41 +0000 (12:37 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 10 Mar 2015 10:37:41 +0000 (12:37 +0200)
lib/Gruntmaster/Daemon.pm

index ce8510d..9caa7dc 100644 (file)
@@ -114,7 +114,7 @@ sub process_job {
                map { $_ => $job->problem->get_column($_) } qw/generator runner judge precnt testcnt timeout olimit/
        };
        $meta->{tests} = decode_json $job->problem->tests if $meta->{runner} eq 'File';
-       delete $meta->{precnt} if $job->problem->is_in_archive;
+       delete $meta->{precnt} unless $job->contest;
        $meta->{testcnt} = $meta->{precnt} if $meta->{precnt};
 
        $meta->{files}{ver} = {
@@ -139,7 +139,7 @@ sub process_job {
                problem => $job->problem,
                owner   => $job->owner,
                job     => $job->id,
-               solved  => $solved}) if !$job->problem->is_private;
+               solved  => $solved}) if !$job->problem->private;
 }
 
 sub got_job{
This page took 0.02863 seconds and 4 git commands to generate.