Changeset 18
- Timestamp:
- Sep 6, 2019, 9:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r17 r18 93 93 function QueryRunners($Category, $Page = 0, $TeamId = null, $Query = null, $StartNumber = null, $Count = null) 94 94 { 95 $URL = 'http ://leaderboard.teribear.cz/Home/GetRunners?category='.$Category;95 $URL = 'https://registrace.teribear.cz/Leaderboard/Home/GetRunners?category='.$Category; 96 96 if ($Page != 0) $URL .= '&page='.$Page; 97 97 if ($TeamId != null) $URL .= '&teamId='.$TeamId; … … 159 159 160 160 $Teams = array(); 161 $DbResult = $this->Database->query('SELECT Team.Id, Team.WebId, '.161 $DbResult = $this->Database->query('SELECT Team.Id, Team.WebId, Team.Name, '. 162 162 '(SELECT TeamStat.Distance FROM TeamStat WHERE (TeamStat.Team = Team.Id) ORDER BY TeamStat.Distance DESC LIMIT 1) AS Distance '. 163 163 'FROM Team WHERE Year='.$Year); … … 240 240 $TeamId = $Teams[$Item['GroupId']]['Id']; 241 241 242 // Update missing team names 243 if ($Teams['Name'] == "") 244 { 245 $Queries[] = $this->Database->GetUpdate('Team', 'Id='.$Team['Id'], array('Name' => $Item['Name'])); 246 $Teams['Name'] = $Item['Name']; 247 echo($Team['Name'].' '); 248 } 249 242 250 if ($Teams[$Item['GroupId']]['Distance'] < $Item['OverallDistance']) 243 251 $Queries[] = $this->Database->GetInsert('TeamStat', array(
Note:
See TracChangeset
for help on using the changeset viewer.