Fix access to problems again
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 10 Apr 2014 14:14:40 +0000 (17:14 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 10 Apr 2014 14:14:40 +0000 (17:14 +0300)
app.psgi

index 0c18ec95ba64bd3e19538e00fd0672c45a4a56c1..4fe071941fa0b4f69ec44d7228c8c515c3cdf715 100644 (file)
--- 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;
        }
        ''
 }
This page took 0.01041 seconds and 4 git commands to generate.