aboutsummaryrefslogtreecommitdiff
path: root/src/fextdata.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-05 14:18:14 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-05 14:18:14 +0000
commit66aad0beeaae24f999e2544103ffe2814fb56cd3 (patch)
treeb4f0c96efb81e2f3383e5628a1bc2125ee6b7303 /src/fextdata.php
parent27e9051904e25a610d7997e1f9d525d58f9ec72f (diff)
downloadboca-66aad0beeaae24f999e2544103ffe2814fb56cd3.tar.gz
boca-66aad0beeaae24f999e2544103ffe2814fb56cd3.zip
bf
Diffstat (limited to 'src/fextdata.php')
-rw-r--r--src/fextdata.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fextdata.php b/src/fextdata.php
index 25ef1f0..2b2d007 100644
--- a/src/fextdata.php
+++ b/src/fextdata.php
@@ -702,10 +702,11 @@ function genSQLs($contest, $site, $updatetime, $mainsite=1) {
//"problemcolor, " .
"updatetime" .
" from problemtable where contestnumber=$contest and fake='f' and updatetime >= $updatetime";
- }
+ $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber!=$site and updatetime >= $updatetime";
+ } else
+ $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$site and updatetime >= $updatetime";
$sql['sitetimetable']="select * from sitetimetable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime";
- $sql['usertable']="select * from usertable where contestnumber=$contest and (usersitenumber=$site or usersitenumber=$mainsite) and updatetime >= $updatetime";
- $sql['clartable']="select * from clartable where contestnumber=$contest and clarsitenumber=$site and updatetime >= $updatetime";
+ $sql['clartable']="select * from clartable where contestnumber=$contest and updatetime >= $updatetime";
$sql['runtable']="select * from runtable where contestnumber=$contest and runsitenumber=$site and updatetime >= $updatetime";
$sql['tasktable']="select * from tasktable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime";
return $sql;