X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb%2FEntry.pm;h=fb78ba5c355116608a11e3079d723aa9ca537834;hb=d393302889074d8c0b43609c1a801ba2989d299e;hp=84fbf052aa43efd9c0af6a61e3fa4d6a8f3466ed;hpb=0e906dd720b3c105acf03449b91d80b8bc3a545e;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index 84fbf05..fb78ba5 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -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' }