From 98a7c0aaad9552d57907c4dccbf3c656002b3c15 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 30 Jan 2014 17:35:04 +0200 Subject: [PATCH] Allow submits before contest_start --- lib/Gruntmaster/Handlers.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2