- my $contest = db->contest_full($_{contest});
- forbid !$contest->{finished};
- my $pblist = db->problem_list(contest => $_{contest}, solution => 1);
- response ed => 'Editorial of ' . $contest->{name}, {%$pblist, editorial => $contest->{editorial}}
+ my $contest = db->select(contests => '*', {id => $_{contest}})->hash;
+ forbid time < $contest->{stop};
+ my $pblist = problem_list contest => $_{contest}, solution => 1;
+ response ed => 'Editorial of ' . $contest->{name}, {pb => $pblist, editorial => $contest->{editorial}}