This commit is contained in:
salam committed 2026-08-30 22:26:58 +02:00
1 parent 60e5ce45ce
commit 12d29d6a6b
4 files changed
+45 -11

No files matched your search

+16
View File
@@ -51,6 +51,8 @@ class LoadEvents
if ($similar_past_matches != 'none') {
$team_id = 0;
$team_position = '';
$exp_handicap = $match->exp_away - $match->exp_home;
@@ -238,6 +240,20 @@ class LoadEvents
$labels[] = round($value['starttime']->diffInDays(Carbon::now()));
switch ($value['result_code']) {
case '1':
$results['w']++;
$results['l2']++;
break;
case 'X':
$results['d']++;
break;
case '2':
$results['l']++;
$results['w2']++;
break;
}
// Home playing HOME done and commited
if ($match->home_id == $value['home_id']) {
$dataset_home[] = (int) $value['val_home'];