From ca8ae31e9ec627d4f9d2f54312da2471ebee3ff2 Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 17 Oct 2025 13:37:45 +0200 Subject: [PATCH] win filter --- update/get_matches.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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]@{