wip
This commit is contained in:
1 parent
8722d88870
commit
6639c7311a
2 files changed
+2
-4
No files matched your search
@@ -354,8 +354,6 @@ class PlayerPropsDrop extends Widget
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dd($count_player);
|
|
||||||
|
|
||||||
// Aspettativa Team di Riferimento
|
// Aspettativa Team di Riferimento
|
||||||
// (ATR) = Aspettativa Team * Numero di Giocatori di Team in Rosters (esclusi i portieri) / 10.
|
// (ATR) = Aspettativa Team * Numero di Giocatori di Team in Rosters (esclusi i portieri) / 10.
|
||||||
// Ad esempio per Remo (supponiamo 24 giocatori nel Roster esclusi i portieri): ATR = 1.2 * 24 / 10 = 2.88
|
// Ad esempio per Remo (supponiamo 24 giocatori nel Roster esclusi i portieri): ATR = 1.2 * 24 / 10 = 2.88
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ trait UpdateHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
self::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());
|
||||||
}
|
}
|
||||||
@@ -112,7 +112,7 @@ trait UpdateHelper
|
|||||||
$this->newLine();
|
$this->newLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function updatePlayers(int $playerCount)
|
protected function updatePlayers(int $playerCount)
|
||||||
{
|
{
|
||||||
$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();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user