From: Marius Gavrilescu Date: Thu, 10 Apr 2014 15:13:57 +0000 (+0300) Subject: Fix a bug in is_problem_in_contest X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d88899fa4495b8ff89aae7d938a3a76c0a1c9357;p=plack-app-gruntmaster.git Fix a bug in is_problem_in_contest --- diff --git a/app.psgi b/app.psgi index 590fbd5..5ddac81 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; } '' }