From 9529f95c01f14509e32fdfc73d0d03093a88ac12 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 15 Apr 2025 19:14:41 +0200 Subject: [PATCH] fix --- discord/report_new_matches.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index d7a242e..f2220ad 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -336,6 +336,8 @@ k_t = Team eliminaties foreach ($item in $player_matches) { if ($item.PSObject.Properties.Name -contains "new_win_matches") { $item.new_win_matches = $null + } + if ($item.PSObject.Properties.Name -contains "new_loss_matches") { $item.new_loss_matches = $null } } @@ -347,4 +349,5 @@ $newJson = $player_matches | ConvertTo-Json -Depth 100 $newJson | out-file "$scriptroot/../data/player_matches.json" remove-lock -Stop-Transcript \ No newline at end of file +Stop-Transcript +