From 8a31bb2b12de377930baee9c07140b7bc3adc997 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 14:25:48 +0100 Subject: [PATCH 1/3] t --- update/get_matches.ps1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index cc77ff4..0348060 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -33,8 +33,6 @@ catch { Write-Output 'Unable to read file exitin' exit } - - foreach ($player in $player_data) { $lastMatches = $player.relationships.matches.data.id #| Select-Object -First 10 $playermatches = @() -- 2.49.1 From 89e35f31d42ed5ab32042fcd2bce8a84e1e9714d Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 14:41:29 +0100 Subject: [PATCH 2/3] t --- update/get_matches.ps1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index cc77ff4..0348060 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -33,8 +33,6 @@ catch { Write-Output 'Unable to read file exitin' exit } - - foreach ($player in $player_data) { $lastMatches = $player.relationships.matches.data.id #| Select-Object -First 10 $playermatches = @() -- 2.49.1 From 1e7fe586274f8780f8e5831668ea23864c4f6292 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 22:45:47 +0100 Subject: [PATCH 3/3] fix --- update/get_matches.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index 0348060..3e1b0cb 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -44,7 +44,7 @@ foreach ($player in $player_data) { } else { $stats = Invoke-RestMethod -Uri "https://api.pubg.com/shards/steam/matches/$match" -Method GET -Headers $headers - $sortedStats = $stats.included | Where-Object { $_.attributes.stats } | Sort-Object { $_.attributes.stats.winplace } + $sortedStats = $stats.included | Sort-Object { $_.attributes.stats.winplace } $stats.included = $sortedStats $stats | ConvertTo-Json -Depth 100 | Out-File "$scriptroot/../data/matches/$match.json" } -- 2.49.1