From: Marius Gavrilescu Date: Thu, 30 Jan 2014 15:35:04 +0000 (+0200) Subject: Allow submits before contest_start X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=sidebyside;p=gruntmaster-handlers.git Allow submits before contest_start --- diff --git a/lib/Gruntmaster/Handlers.pm b/lib/Gruntmaster/Handlers.pm index 5415b80..fd4fd2d 100644 --- a/lib/Gruntmaster/Handlers.pm +++ b/lib/Gruntmaster/Handlers.pm @@ -51,7 +51,7 @@ sub submit{ $prog = $temp if $temp } die if defined $contest && $contest !~ /^\w+$/ ; - die if defined $contest && (time < contest_start $contest || time > contest_end $contest); + die if defined $contest && (time > contest_end $contest); return aputs 'A required parameter was not supplied' if grep { !defined } $problem, $format, $prog; local $Gruntmaster::Data::contest = $contest;