aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-05 14:46:05 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-05 14:46:05 +0000
commitf7b55b154638350519e1e7f2ef0526cd333b8ffe (patch)
treedc71680d1d83a03bd2466e8cf51772bf12fcf276
parent66aad0beeaae24f999e2544103ffe2814fb56cd3 (diff)
downloadboca-f7b55b154638350519e1e7f2ef0526cd333b8ffe.tar.gz
boca-f7b55b154638350519e1e7f2ef0526cd333b8ffe.zip
bf
-rw-r--r--src/fscore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fscore.php b/src/fscore.php
index 2c57695..6d1482f 100644
--- a/src/fscore.php
+++ b/src/fscore.php
@@ -265,7 +265,7 @@ function DBRecentNews($contest, $site, $verifylastmile, $minutes=3) {
"u.usernumber as usernumber, p.problemnumber as problemnumber, p.problemname, (r.rundatediffans>$ta) as fut, min(r.rundatediff) as time from " .
"runtable as r, answertable as a, problemtable as p, usertable as u where r.runanswer=a.answernumber and " .
"p.contestnumber=$contest and a.contestnumber=$contest and r.usernumber = u.usernumber and u.usertype='team' and " .
- "p.problemnumber=r.runproblem and r.contestnumber=$contest and r.runsitenumber=$site and u.userenabled='t' and " .
+ "p.problemnumber=r.runproblem and r.contestnumber=$contest and r.runsitenumber=$site and u.userenabled='t' and r.runstatus !~ 'deleted'" .
"r.rundatediff>=$taa and r.rundatediff<=$tf and r.rundatediff<=$ta and u.contestnumber=$contest and u.usersitenumber=$site and " .
"((a.yes='t' and r.rundatediffans<=$ta) or (r.rundatediffans>$ta)) " .
"group by a.yes,p.problemcolor,p.problemcolorname,p.problemname,u.userfullname,u.usernumber,p.problemnumber,fut order by time", "DBRecentNews(get runs)");