when SPM != non $set('team_position', null);

This commit is contained in:
salam committed 2026-06-15 10:13:12 +02:00
1 parent f4f524646a
commit 0ebc3b3f4e
2 files changed
+16 -26

No files matched your search

+1 -11
View File
@@ -418,7 +418,7 @@ class LoadEvents
'away_team' => $away_team,
'similar_past_matches' => $similar_past_matches,
];
if ($dataset_exp_home) {
if ($statistic_type == 'gls') {
$data['datasets'][] = [
'label' => 'Goals ' . $label1,
'events' => $events,
@@ -430,11 +430,6 @@ class LoadEvents
'backgroundColor' => '#00c950',
'pointStyle' => $hasdots,
'hidden' => true,
'fill' => [
'target' => 1,
'above' => '#fb2c3680',
'below' => '#fdc70080',
],
];
$data['datasets'][] = [
'label' => 'Goals ' . $label2,
@@ -447,11 +442,6 @@ class LoadEvents
'backgroundColor' => '#2b7fff',
'pointStyle' => $hasdots,
'hidden' => true,
'fill' => [
'target' => 1,
'above' => '#fb2c3680',
'below' => '#fdc70080',
],
];
}