wip
This commit is contained in:
1 parent
d9f3a7c9c0
commit
ec2245bdee
1 file changed
+5
-5
@@ -48,7 +48,7 @@ trait UpdateHelper
|
||||
try {
|
||||
$this->updatePlayers($playerCount);
|
||||
} catch (\Exception $e) {
|
||||
$this->error(get_class($e) . ' ' . Str::of($e->getMessage())->limit(100)->value());
|
||||
$this->error(get_class($e).' '.Str::of($e->getMessage())->limit(100)->value());
|
||||
}
|
||||
|
||||
if ($this->debug) {
|
||||
@@ -97,8 +97,8 @@ trait UpdateHelper
|
||||
|
||||
$formattedTime = match (true) {
|
||||
$executionTime >= 60 => sprintf('%dm %ds', floor($executionTime / 60), $executionTime % 60),
|
||||
$executionTime >= 1 => round($executionTime, 2) . 's',
|
||||
default => round($executionTime * 1000) . 'ms',
|
||||
$executionTime >= 1 => round($executionTime, 2).'s',
|
||||
default => round($executionTime * 1000).'ms',
|
||||
};
|
||||
|
||||
$this->newLine();
|
||||
@@ -116,7 +116,7 @@ trait UpdateHelper
|
||||
{
|
||||
$res_player = StatistikoDetail::query()->where('is_active', 1)->limit($playerCount)->pluck('ss_player_id')->toArray();
|
||||
|
||||
$chunks = array_chunk($res_player, 1000);
|
||||
$chunks = array_chunk($res_player, 500);
|
||||
|
||||
foreach ($chunks as $chunk) {
|
||||
|
||||
@@ -154,7 +154,7 @@ trait UpdateHelper
|
||||
$collection['total'][$ss_player_id]['events_played_away'] += 1;
|
||||
$collection['total'][$ss_player_id]['minutes_played_away'] += $minutes_played;
|
||||
}
|
||||
//ubaldo 18. Sep 26 intanto vado avanti, appena trovo qwuaqlcosa ti scrivo, tu togli i red cards dal conteggio
|
||||
// ubaldo 18. Sep 26 intanto vado avanti, appena trovo qwuaqlcosa ti scrivo, tu togli i red cards dal conteggio
|
||||
$cards = $val->card_yellow + $val->card_yellowred;
|
||||
|
||||
$collection[$season][$ss_player_id]['ss_player_id'] = $ss_player_id;
|
||||
|
||||
Reference in new issue
Block a user