From f78dbc4493f67167f6f4367c6be8792475f6fcc3 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Sun, 30 Jul 2017 17:22:32 +0100 Subject: bug fixes --- src/fextdata.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fextdata.php') diff --git a/src/fextdata.php b/src/fextdata.php index e43d0af..e531a77 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -453,15 +453,15 @@ function genSQLs($contest, $site, $updatetime) { $sql['langtable']="select * from langtable where contestnumber=$contest and updatetime >= $updatetime"; $sql['problemtable']="select * from problemtable where contestnumber=$contest and fake='f' 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 sitenumber=$site and updatetime >= $updatetime"; - $sql['clartable']="select * from clartable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime"; - $sql['runtable']="select * from runtable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime"; + $sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$site and updatetime >= $updatetime"; + $sql['clartable']="select * from clartable where contestnumber=$contest and clarsitenumber=$site 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; } function generateSiteXML($contest,$site,$updatetime) { - $sql = genSQL($contest, $site, $updatetime); + $sql = genSQLs($contest, $site, $updatetime); $c = DBConnect(); if ($c==null) return null; DBExec($c, "begin work"); -- cgit v1.2.3