From 495d496696d2d09f552bb08e683e699465806e75 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 10 Mar 2015 12:37:41 +0200 Subject: [PATCH] Do not use removed functions --- lib/Gruntmaster/Daemon.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{ -- 2.39.2