From 7f07c2bab20eef44edd4a6064e286d6a09ce02ac Mon Sep 17 00:00:00 2001 From: Lanta Date: Mon, 25 Sep 2023 14:51:50 +0200 Subject: [PATCH] more efficient --- data/player_last_stats.json | 2 +- update/matchparser.ps1 | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/player_last_stats.json b/data/player_last_stats.json index f38be71..02d03c5 100644 --- a/data/player_last_stats.json +++ b/data/player_last_stats.json @@ -72,6 +72,6 @@ "KD_ALL": 1.3333333333333333 }, { - "updated": "09/25/2023 13:52:33 - Time Zone: W. Europe Standard Time" + "updated": "09/25/2023 14:31:54 - Time Zone: W. Europe Standard Time" } ] diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index ec2c894..1de8110 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -14,7 +14,6 @@ function get-killstats { foreach ($action in $telemetry) { if ($action.PSObject.Properties.name.contains('killer')) { - #write-output "Analyzing dBNOid $($action.dBNOId)" $attacks += $action } @@ -50,7 +49,7 @@ foreach ($player in $all_player_matches) { } write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)" - $killstats += get-killstats -player_name $player_name -telemetry $telemetry + $killstats += get-killstats -player_name $player_name -telemetry ($telemetry | where-object {$_._T -eq 'LOGPLAYERKILLV2'}) } }