X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb%2FEntry.pm;h=fb78ba5c355116608a11e3079d723aa9ca537834;hb=d393302889074d8c0b43609c1a801ba2989d299e;hp=8b770efe3a24bcc5f193675171a685e364480227;hpb=277f05a743e67e24327bded2a851a8cb998a55d0;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index 8b770ef..fb78ba5 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -7,7 +7,7 @@ use Gruntmaster::Page::Base pb_entry => ''; our @ISA = qw/Gruntmaster::Page::Base/; our $VERSION = '0.001'; -use constant FORMATS => [qw/C CPP JAVA PERL PYTHON/]; +use constant FORMATS => [qw/C CPP JAVA PASCAL PERL PYTHON/]; sub _generate{ my ($self, $htc, $lang, $env, $contest, $id) = @_; @@ -18,10 +18,10 @@ sub _generate{ mark_open $id, $user; debug $env => "Marking problem $id of contest $contest open by $user"; } - +t $htc->param(cansubmit => 1); if ($contest) { - $htc->param(cansubmit => time <= contest_end $contest); + $htc->param(cansubmit => (time <= contest_end $contest)); $htc->param(contest => $contest); } $htc->param(formats => FORMATS); @@ -31,6 +31,7 @@ sub _generate{ $htc->param(author => problem_author $id); $htc->param(owner => problem_owner $id); $htc->param(statement => problem_statement $id); + $htc->param(timelimit => problem_timeout $id); } sub vary { 'Authorization' }