diff --git a/data/player_last_stats.json b/data/player_last_stats.json index 02d03c5..9ce7131 100644 --- a/data/player_last_stats.json +++ b/data/player_last_stats.json @@ -31,7 +31,7 @@ "deaths": 0.0, "kills": 6.0, "humankills": 2.0, - "matches": 4, + "matches": 1, "KD_H": "Infinity", "KD_ALL": "Infinity" }, @@ -72,6 +72,6 @@ "KD_ALL": 1.3333333333333333 }, { - "updated": "09/25/2023 14:31:54 - Time Zone: W. Europe Standard Time" + "updated": "09/25/2023 15:19:43 - Time Zone: W. Europe Standard Time" } ] diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 1de8110..d5628c3 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -67,7 +67,7 @@ foreach ($player in $all_player_matches.playername) { deaths = $deaths kills = $kills humankills = $humankills - matches = ($killstats | where-object { $_.playername -eq $player }).count + matches = ($all_player_matches | where-object {$_.playername -eq $player}).player_matches.count KD_H = $humankills / $deaths KD_ALL = $kills / $deaths