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} = {
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{