Dev #276
1 changed files with 5 additions and 2 deletions
|
|
@ -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]@{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue