Merge pull request #272 from OpzekerIT/dev

geen events
This commit is contained in:
Lanta 2025-10-08 15:33:56 +02:00 committed by GitHub
commit 633ab16523
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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