geen events #272
1 changed files with 4 additions and 1 deletions
|
|
@ -48,7 +48,10 @@ foreach ($player in $player_data) {
|
||||||
$stats.included = $sortedStats
|
$stats.included = $sortedStats
|
||||||
$stats | ConvertTo-Json -Depth 100 | Out-File "$scriptroot/../data/matches/$match.json"
|
$stats | ConvertTo-Json -Depth 100 | Out-File "$scriptroot/../data/matches/$match.json"
|
||||||
}
|
}
|
||||||
|
if($stats.data.attributes.matchtype -eq 'event'){
|
||||||
|
write-output 'Skipping because of event'
|
||||||
|
continue
|
||||||
|
}
|
||||||
$playermatches += [PSCustomObject]@{
|
$playermatches += [PSCustomObject]@{
|
||||||
stats = $stats.included.ATTRIBUTES.stats | where-object { $_.name -eq $player.attributes.name }
|
stats = $stats.included.ATTRIBUTES.stats | where-object { $_.name -eq $player.attributes.name }
|
||||||
matchType = $stats.data.attributes.matchtype
|
matchType = $stats.data.attributes.matchtype
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue