From 16297a852595091d7abdd4b1139c7bd80ae58a66 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 18 Jul 2024 09:07:01 +0200 Subject: [PATCH] fix --- update/matchparser.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 2816bf2..33c0647 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -214,15 +214,15 @@ function Get-MatchStatsPlayer { change = $change } } - $MatchStatsPlayer | ForEach-Object { - $_ | Add-Member -NotePropertyName RandomKey -NotePropertyValue (Get-Random) -PassThru - } | Sort-Object -Property RandomKey | Select-Object -Property * -ExcludeProperty RandomKey #randomize the order + return $MatchStatsPlayer | ForEach-Object { + $_ | Add-Member -NotePropertyName RandomKey -NotePropertyValue (Get-Random) -PassThru + } | Sort-Object -Property RandomKey | Select-Object -Property * -ExcludeProperty RandomKey #randomize the order - - return $MatchStatsPlayer } + + $playerstats_event_ibr = Get-MatchStatsPlayer -GameMode -typemodevalue 'ibr' -playernames $all_player_matches.playername -friendlyname 'Intense' $playerstats_airoyale = Get-MatchStatsPlayer -MatchType -typemodevalue 'airoyale' -playernames $all_player_matches.playername -friendlyname 'Casual' $playerstats_official = Get-MatchStatsPlayer -MatchType -typemodevalue 'official' -playernames $all_player_matches.playername -friendlyname 'official' -- 2.49.1