From: Marius Gavrilescu Date: Thu, 10 Apr 2014 14:14:40 +0000 (+0300) Subject: Fix access to problems again X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=33c62e70ae9ad4afdda494c9550d6adc859cbce4;p=plack-app-gruntmaster.git Fix access to problems again --- diff --git a/app.psgi b/app.psgi index 0c18ec9..4fe0719 100644 --- a/app.psgi +++ b/app.psgi @@ -48,7 +48,7 @@ sub is_problem_in_contest { return 1 if $db->contest_problems->find($ct, $pb); return '' if defined $ct; for my $cp ($db->problem($pb)->contest_problems) { - return 1 if $cp->contest->stop >= time; + return 1 if $cp->contest->stop <= time; } '' }