This commit is contained in:
salam committed 2026-09-25 12:23:49 +02:00
1 parent d9f3a7c9c0
commit ec2245bdee
1 file changed
+5 -5
+5 -5
View File
@@ -48,7 +48,7 @@ trait UpdateHelper
try { try {
$this->updatePlayers($playerCount); $this->updatePlayers($playerCount);
} catch (\Exception $e) { } 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) { if ($this->debug) {
@@ -97,8 +97,8 @@ trait UpdateHelper
$formattedTime = match (true) { $formattedTime = match (true) {
$executionTime >= 60 => sprintf('%dm %ds', floor($executionTime / 60), $executionTime % 60), $executionTime >= 60 => sprintf('%dm %ds', floor($executionTime / 60), $executionTime % 60),
$executionTime >= 1 => round($executionTime, 2) . 's', $executionTime >= 1 => round($executionTime, 2).'s',
default => round($executionTime * 1000) . 'ms', default => round($executionTime * 1000).'ms',
}; };
$this->newLine(); $this->newLine();
@@ -116,7 +116,7 @@ trait UpdateHelper
{ {
$res_player = StatistikoDetail::query()->where('is_active', 1)->limit($playerCount)->pluck('ss_player_id')->toArray(); $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) { foreach ($chunks as $chunk) {
@@ -154,7 +154,7 @@ trait UpdateHelper
$collection['total'][$ss_player_id]['events_played_away'] += 1; $collection['total'][$ss_player_id]['events_played_away'] += 1;
$collection['total'][$ss_player_id]['minutes_played_away'] += $minutes_played; $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; $cards = $val->card_yellow + $val->card_yellowred;
$collection[$season][$ss_player_id]['ss_player_id'] = $ss_player_id; $collection[$season][$ss_player_id]['ss_player_id'] = $ss_player_id;