From dde514a3cfad0c9ca109b04bea410c0a18d6bd1b Mon Sep 17 00:00:00 2001 From: Lanta Date: Mon, 6 Nov 2023 09:57:51 +0100 Subject: [PATCH] save killstats --- update/matchparser.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 5592a35..66a20ac 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -100,11 +100,11 @@ foreach ($player in $all_player_matches) { write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)" $killstat = get-killstats -player_name $player_name -telemetry ($telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' }) -gameMode $match.gameMode -matchType $match.matchType $killstats += $killstat - if ($save) { + if ($true) { $savekillstats = @{ matchid = $match.id created = $match.createdAt - stats = $killstats + stats = $killstat } $savekillstats | ConvertTo-Json | out-file "$scriptroot/../data/killstats/$($match.id).json" }