From b643b4e844a3d9b9d32dbba977a7cd4181575296 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 28 Feb 2014 23:09:34 +0200 Subject: [PATCH] Use new lastjob --- lib/Gruntmaster/Page/Submit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2