This commit is contained in:
Lanta 2025-10-08 15:54:39 +02:00
parent 890d445c78
commit c175319cd9

View file

@ -161,6 +161,10 @@ $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'
continue
}
if ($json.created -gt $last_month) { if ($json.created -gt $last_month) {
$killstats += $json $killstats += $json
if ($groupedGuids_clan_matches_gt_1.Name -contains $json.matchid) { if ($groupedGuids_clan_matches_gt_1.Name -contains $json.matchid) {