projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9f1191
)
Use new lastjob
author
Marius Gavrilescu
<marius@ieval.ro>
Fri, 28 Feb 2014 21:09:34 +0000
(23:09 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Fri, 28 Feb 2014 21:09:34 +0000
(23:09 +0200)
lib/Gruntmaster/Page/Submit.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/Submit.pm
b/lib/Gruntmaster/Page/Submit.pm
index ea67c2b609b3b6c575c86f92e2a7f1014bec367c..535a5363f8667621bb20a8167efedde0b431fb41 100644
(file)
--- 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;
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;
local $Gruntmaster::Data::contest = $contest if $contest;
This page took
0.010843 seconds
and
4
git commands to generate.