|
|
@@ -76,24 +76,14 @@ class WebDbConnection {
|
|
|
private function prepareMatches($matches, $leagueId, $countryId) {
|
|
|
foreach ($matches as $match) {
|
|
|
|
|
|
- var_dump($match);
|
|
|
-
|
|
|
$league = $this->getLeagueInfo($leagueId);
|
|
|
|
|
|
- echo "</br></br> League </br>";
|
|
|
- var_dump($league[0]);
|
|
|
-
|
|
|
$lookback = $league[0]['lookback'];
|
|
|
$betMargin = $league[0]['betMargin'];
|
|
|
|
|
|
$homeTeamResults = $this->getTeamResults($match['homeTeam'], $lookback, true)[0];
|
|
|
$awayTeamResults = $this->getTeamResults($match['awayTeam'], $lookback, false)[0];
|
|
|
|
|
|
- echo "</br></br> HomeTeam </br>";
|
|
|
- var_dump($homeTeamResults);
|
|
|
-
|
|
|
- echo "</br></br> AwayTeam </br>";
|
|
|
- var_dump($awayTeamResults);
|
|
|
$homeTeamCount = $homeTeamResults['wins'] + $homeTeamResults['draws'] + $homeTeamResults['lost'];
|
|
|
$awayTeamCount = $awayTeamResults['wins'] + $awayTeamResults['draws'] + $awayTeamResults['lost'];
|
|
|
|
|
|
@@ -105,9 +95,6 @@ class WebDbConnection {
|
|
|
$match['drawPercent'] = $drawPercent;
|
|
|
$match['awayWinPercent'] = $awayWinPercent;
|
|
|
|
|
|
-
|
|
|
- echo "</br></br> matchDoneEdit added percentages " . $homeWinPercent . ", $drawPercent, $awayWinPercent </br>";
|
|
|
- var_dump($match);
|
|
|
}
|
|
|
return $matches;
|
|
|
}
|