win filter

This commit is contained in:
Lanta 2025-10-17 13:37:45 +02:00
parent c4ed5551ae
commit ca8ae31e9e

View file

@ -48,8 +48,11 @@ 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' -or $stats.data.attributes.gameMode -eq 'tdm'){ if (
write-output 'Skipping because of event' ($stats.data.attributes.matchtype -eq 'event' -and $stats.data.attributes.gameMode -ne 'ibr') -or
($stats.data.attributes.gameMode -eq 'tdm')
) {
Write-Output 'Skipping because of event or tdm'
continue continue
} }
$playermatches += [PSCustomObject]@{ $playermatches += [PSCustomObject]@{