use PerlX::Maybe qw/maybe/;
use Sub::Name qw/subname/;
-use constant PROBLEM_PUBLIC_COLUMNS => [qw/id author writer level name owner private statement timeout olimit value/];
+use constant PROBLEM_PUBLIC_COLUMNS => [qw/id author writer level name owner private timeout olimit value/];
use constant USER_PUBLIC_COLUMNS => [qw/id admin name town university level/];
use constant JOBS_PER_PAGE => 10;
my ($self, $id, $contest, $user) = @_;
my $running = $contest && $self->contest($contest)->is_running;
my $columns = PROBLEM_PUBLIC_COLUMNS;
+ push @$columns, 'statement';
push @$columns, 'solution' unless $running;
my $pb = $self->problems->find($id, {columns => $columns, prefetch => 'owner'});
my $open;