X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FSubmit.pm;h=535a5363f8667621bb20a8167efedde0b431fb41;hb=e046c73abf1f466bcafca06a01a0af2c9e2120c9;hp=ea67c2b609b3b6c575c86f92e2a7f1014bec367c;hpb=fcd3a29c3144870f2a418a0dbf6093da26e6709f;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Submit.pm b/lib/Gruntmaster/Page/Submit.pm index ea67c2b..535a536 100644 --- a/lib/Gruntmaster/Page/Submit.pm +++ b/lib/Gruntmaster/Page/Submit.pm @@ -25,8 +25,8 @@ sub generate{ die if defined $contest && (time > contest_end $contest); return reply 'A required parameter was not supplied' if grep { !defined } $problem, $format, $prog; return reply 'Maximum source size is 10KB' if length $prog > 25 * 1024; - return reply 'You must wait 30 seconds between jobs' unless time > lastjob ($r->user) + 30; - set_lastjob $r->user; + return reply 'You must wait 30 seconds between jobs' unless time > user_lastjob ($r->user) + 30; + set_user_lastjob $r->user, time; local $Gruntmaster::Data::contest = $contest if $contest;