wip
This commit is contained in:
1 parent
d9be32828d
commit
448699e703
1 file changed
+3
-2
@@ -70,7 +70,7 @@ class LoadPerformance
|
||||
$res = StatistikoPlayer::whereIn('match_id', $away_matches)->select('match_id', 'minutes_played', 'playerrating_value', 'player_position')->get();
|
||||
$aways = self::filterMatches($res, $away_matches);
|
||||
|
||||
// self::shortenEnding($labels, $homes, $aways);
|
||||
self::shortenEnding($labels, $homes, $aways);
|
||||
|
||||
$data = [
|
||||
'datasets' => [
|
||||
@@ -296,6 +296,7 @@ class LoadPerformance
|
||||
$aways['def'] = array_slice($aways['def'], 0, $keeps);
|
||||
$aways['att'] = array_slice($aways['att'], 0, $keeps);
|
||||
$aways['mid'] = array_slice($aways['mid'], 0, $keeps);
|
||||
$labels = array_slice($labels, 0, $keeps);
|
||||
// $labels = array_slice($labels, 0, $keeps);
|
||||
$labels = range(1, $keeps);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user