commit
8859b603dc
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue