From 793b380f2dfc4f866df41e65adbe306057dd9ebe Mon Sep 17 00:00:00 2001 From: cassiopc Date: Thu, 29 Aug 2013 15:40:58 +0200 Subject: bug fix: tasks were not appearing during frozen score but before stopping balloons --- src/fscore.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/fscore.php') diff --git a/src/fscore.php b/src/fscore.php index d2b203e..ac60661 100644 --- a/src/fscore.php +++ b/src/fscore.php @@ -178,16 +178,14 @@ function DBBalloon($contest, $site, $user, $problem, $localsite=true, $c=null) { $t = time(); $ta = $blocal["currenttime"]; -// if ($verifylastmile) - $tf = $b["sitelastmilescore"]; -// else { -// $tf = $b["siteduration"]; -// } + $tf = $b["siteduration"]; $r = DBExec($c, "select r.rundatediff as time, a.yes as yes from " . "runtable as r, answertable as a where r.runanswer=a.answernumber and " . "a.contestnumber=$contest and r.usernumber=$user and r.runproblem=$problem and " . "r.contestnumber=$contest and r.runsitenumber=$site and (r.runstatus ~ 'judged' or r.runstatus ~ 'judged+') and " . - "r.rundatediff>=0 and r.rundatediff<=$tf and r.rundatediffans<=$ta " . + "r.rundatediff>=0 " . + "and r.rundatediff<=$tf " . + "and r.rundatediffans<=$ta " . "order by r.rundatediff", "DBBalloon(get runs)"); $n = DBnlines($r); for ($i=0;$i<$n;$i++) { -- cgit v1.2.3