]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Pb/Entry.pm
add time limits
[gruntmaster-page.git] / lib / Gruntmaster / Page / Pb / Entry.pm
index 84fbf052aa43efd9c0af6a61e3fa4d6a8f3466ed..fb78ba5c355116608a11e3079d723aa9ca537834 100644 (file)
@@ -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' }
This page took 0.023369 seconds and 4 git commands to generate.