X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=45f746696087a41c88f558137d7d3ba8a04da040;hb=936ea404e1a7a3fe795a8114969d54df64d8a84a;hp=590fbd5fdca9470ea23f31d88bf85a69f463ed63;hpb=d16e978882dcdf64314e4fcde02c892c7d974eb5;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index 590fbd5..45f7466 100644 --- a/app.psgi +++ b/app.psgi @@ -48,9 +48,9 @@ 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 '' if $cp->contest->stop >= time; } - '' + 1 } sub admin_required {