From 8a31bb2b12de377930baee9c07140b7bc3adc997 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 14:25:48 +0100 Subject: [PATCH 1/4] 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/4] 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 c9e33d9c7ed3aa8a61f49a2dff167a72dccd2357 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 15:30:43 +0100 Subject: [PATCH 3/4] tier --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 094d960..7af0d74 100644 --- a/index.php +++ b/index.php @@ -110,9 +110,9 @@ $lastMatches = array_slice($allMatches, 0, 8); $subTier = $rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['subTier']; $image = "./images/ranks/" . $tier . "-" . $subTier . ".webp"; $rankPoint = htmlspecialchars($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentRankPoint']); - echo "name" . htmlspecialchars($playername) . "" . $rankPoint . ""; + echo "name" . htmlspecialchars($playername) . "$tier" . $rankPoint . ""; } else { - echo "name" . htmlspecialchars($playername) . ""; + echo "name" . htmlspecialchars($playername) . "$tier"; } -- 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 4/4] 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