From: Marius Gavrilescu Date: Tue, 10 Mar 2015 10:37:41 +0000 (+0200) Subject: Do not use removed functions X-Git-Tag: 5999.000_005~26 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=495d496696d2d09f552bb08e683e699465806e75;p=gruntmaster-daemon.git Do not use removed functions --- diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index ce8510d..9caa7dc 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -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{