Merge pull request #274 from OpzekerIT/dev

tdm be gone
This commit is contained in:
Lanta 2025-10-08 16:32:03 +02:00 committed by GitHub
commit 8859b603dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,8 +161,9 @@ $groupedGuids_clan_matches_gt_3 = $guids | Group-Object | Where-Object { $_.Coun
$last_month = (get-date).AddMonths($monthsback) $last_month = (get-date).AddMonths($monthsback)
foreach ($file in $matchfiles) { foreach ($file in $matchfiles) {
$json = get-content $file | ConvertFrom-Json $json = get-content $file | ConvertFrom-Json
if($json.stats.matchType -eq 'event'){
write-output 'match is event skipping' if($json.stats.matchType -eq 'event' -or $json.stats.gameMode -eq 'tdm'){
write-output 'match is event or tdm skipping'
continue continue
} }
if ($json.created -gt $last_month) { if ($json.created -gt $last_month) {