X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb%2FEntry.pm;h=efcba375f3bc926138a93a99ed00c9d5725aac5c;hb=79bd8e7add4fb4fd1a3bce1eac007a239c0bc64e;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..efcba37 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -21,7 +21,7 @@ sub _generate{ $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' }