Fix a bug in is_problem_in_contest
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 10 Apr 2014 15:13:57 +0000 (18:13 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 10 Apr 2014 15:13:57 +0000 (18:13 +0300)
app.psgi

index 590fbd5fdca9470ea23f31d88bf85a69f463ed63..5ddac815ad35d613c8ef2a17d69888c4aa5e7995 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.010397 seconds and 4 git commands to generate.