This commit is contained in:
Lanta 2025-10-17 13:37:34 +02:00
parent 20a050148b
commit c4ed5551ae
2 changed files with 13 additions and 3 deletions

View file

@ -162,8 +162,11 @@ $last_month = (get-date).AddMonths($monthsback)
foreach ($file in $matchfiles) {
$json = get-content $file | ConvertFrom-Json
if($json.stats.matchType -eq 'event' -or $json.stats.gameMode -eq 'tdm'){
write-output 'match is event or tdm skipping'
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
}
if ($json.created -gt $last_month) {