wip
This commit is contained in:
1 parent
82205c9784
commit
acc67ef6a4
1 file changed
+8
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user