From d88899fa4495b8ff89aae7d938a3a76c0a1c9357 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 10 Apr 2014 18:13:57 +0300 Subject: [PATCH] Fix a bug in is_problem_in_contest --- app.psgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } '' } -- 2.30.2