Do not mark problems as open before contest start
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 14 Feb 2014 17:44:45 +0000 (19:44 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 14 Feb 2014 17:44:45 +0000 (19:44 +0200)
lib/Gruntmaster/Page/Pb/Entry.pm

index 8b770efe3a24bcc5f193675171a685e364480227..4cf007edcd1760d3eaf7dea49298ad942d52265f 100644 (file)
@@ -13,7 +13,7 @@ sub _generate{
        my ($self, $htc, $lang, $env, $contest, $id) = @_;
        debug $env => "language is '$lang', contest is '$contest', id is '$id'";
        my $user = $env->{REMOTE_USER};
-       if ($contest && $user) {
+       if ($contest && $user && time >= contest_start $contest) {
                local $Gruntmaster::Data::contest = $contest;
                mark_open $id, $user;
                debug $env => "Marking problem $id of contest $contest open by $user";
This page took 0.010978 seconds and 4 git commands to generate.