wip pp
This commit is contained in:
1 parent
f9c0c5aec5
commit
e0c1baf849
6 files changed
+32
-22
No files matched your search
@@ -130,7 +130,7 @@ trait UpdateHelper
|
||||
$ss_player_id = (int) $val->ss_player_id;
|
||||
$activeteam_id = (int) $val->activeteam_id;
|
||||
$minutes_played = (int) $val->minutes_played;
|
||||
$ss_team_id = (int) $val->details->ss_team_id;
|
||||
// $ss_team_id = (int) $val->details->ss_team_id;
|
||||
$season = $val->event->season;
|
||||
$home_id = (int) $val->event->home_id;
|
||||
$away_id = (int) $val->event->away_id;
|
||||
@@ -177,7 +177,7 @@ trait UpdateHelper
|
||||
$cards = $val->card_yellow + $val->card_yellowred;
|
||||
|
||||
$collection[$season][$ss_player_id]['ss_player_id'] = $ss_player_id;
|
||||
$collection[$season][$ss_player_id]['ss_team_id'] = $ss_team_id;
|
||||
// $collection[$season][$ss_player_id]['ss_team_id'] = $ss_team_id;
|
||||
$collection[$season][$ss_player_id]['season'] = $season;
|
||||
$collection[$season][$ss_player_id]['total_events']++;
|
||||
$collection[$season][$ss_player_id]['total_min'] += $minutes_played;
|
||||
@@ -192,7 +192,7 @@ trait UpdateHelper
|
||||
$collection[$season][$ss_player_id]['total_shots'] += $val->shots_on_target + $val->shots_off_target + $val->shots_blocked;
|
||||
|
||||
$collection['total'][$ss_player_id]['ss_player_id'] = $ss_player_id;
|
||||
$collection['total'][$ss_player_id]['ss_team_id'] = $ss_team_id;
|
||||
// $collection['total'][$ss_player_id]['ss_team_id'] = $ss_team_id;
|
||||
$collection['total'][$ss_player_id]['season'] = 'total';
|
||||
$collection['total'][$ss_player_id]['total_events']++;
|
||||
$collection['total'][$ss_player_id]['total_min'] += $minutes_played;
|
||||
@@ -208,7 +208,7 @@ trait UpdateHelper
|
||||
|
||||
if ($last_180_days) {
|
||||
$collection['last_180_days'][$ss_player_id]['ss_player_id'] = $ss_player_id;
|
||||
$collection['last_180_days'][$ss_player_id]['ss_team_id'] = $ss_team_id;
|
||||
// $collection['last_180_days'][$ss_player_id]['ss_team_id'] = $ss_team_id;
|
||||
$collection['last_180_days'][$ss_player_id]['season'] = 'last_180_days';
|
||||
$collection['last_180_days'][$ss_player_id]['total_events']++;
|
||||
$collection['last_180_days'][$ss_player_id]['total_min'] += $minutes_played;
|
||||
@@ -237,7 +237,7 @@ trait UpdateHelper
|
||||
$collection_1d,
|
||||
uniqueBy: [
|
||||
'ss_player_id',
|
||||
'ss_team_id',
|
||||
// 'ss_team_id',
|
||||
'season',
|
||||
],
|
||||
update: [
|
||||
|
||||
Reference in new issue
Block a user