wip
This commit is contained in:
1 parent
8f6beac89b
commit
82f3654a05
5 files changed
+29
-25
No files matched your search
@@ -13,15 +13,15 @@ class LoadPlayer
|
||||
{
|
||||
$team_id = $get('team_id');
|
||||
|
||||
$season = $get('season');
|
||||
// $season = $get('season');
|
||||
|
||||
$team_position = $get('team_position');
|
||||
|
||||
$season_or_date = $filter['season_or_date'] ?? 'season';
|
||||
// $season_or_date = $filter['season_or_date'] ?? 'season';
|
||||
|
||||
if ($season_or_date != 'season' or !count($season)) {
|
||||
$season[] = date('Y');
|
||||
}
|
||||
// if ($season_or_date != 'season' or !count($season)) {
|
||||
// $season[] = date('Y');
|
||||
// }
|
||||
|
||||
$matches = StatistikoEvent::where(function ($query) use ($team_id, $team_position) {
|
||||
switch ($team_position) {
|
||||
@@ -43,7 +43,9 @@ class LoadPlayer
|
||||
$positions_map = LoadPositions::load();
|
||||
|
||||
// needs to run daily for pre-calculaton
|
||||
$player = SofaScorePlayerPerSeason::with('details')->where('ss_team_id', $team_id)->whereIn('season', $season)->get();
|
||||
$player = SofaScorePlayerPerSeason::with('details')->where('ss_team_id', $team_id)->get();
|
||||
|
||||
// dd($player);
|
||||
|
||||
$arr = [];
|
||||
foreach ($player as $val) {
|
||||
|
||||
Reference in new issue
Block a user