diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index 5692223..d999ea6 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -48,8 +48,11 @@ foreach ($player in $player_data) { $stats.included = $sortedStats $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'){ - write-output 'Skipping because of event' + if ( + ($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 } $playermatches += [PSCustomObject]@{