This commit is contained in:
salam committed 2026-04-30 09:11:48 +02:00
1 parent 82205c9784
commit acc67ef6a4
1 file changed
+8 -3
+8 -3
View File
@@ -48,10 +48,15 @@ class LoadEvents
$datasets = [];
$labels = [];
$statistic_type = $filter['statistic_type'];
if ($statistic_type == 'none') {
$statistic_type = 'gls';
}
foreach ($res as $value) {
$labels[] = $value['starttime']->format('d. M.y');
dd($filter);
// dd($filter);
// $tmp['exp_handicap'] = (float) $value['exp_handicap'];
// $tmp['exp_total'] = (float) $value['exp_total'];
@@ -60,7 +65,7 @@ class LoadEvents
if ($team_position == 'home') {
switch ($filter['statistic_type']) {
switch ($statistic_type) {
case 'gls':
$val = (int) $value['gls_h'];
break;
@@ -85,7 +90,7 @@ class LoadEvents
}
} elseif ($team_position == 'away') {
switch ($filter['statistic_type']) {
switch ($statistic_type) {
case 'gls':
$val = (int) $value['gls_a'];
break;