From 4db637b41473fb658811095bcc9f5d0265577ded Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 10:05:09 +0100 Subject: [PATCH] fix --- update/update_clan_members.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index e09890f..8732e83 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -170,8 +170,7 @@ $lifetimestats['updated'] = $formattedString $lifetimestats | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_lifetime_data.json" -remove-lock -Stop-Transcript + $seasons = Invoke-RestMethod -Uri "https://api.pubg.com/shards/steam/seasons" -Method GET -Headers $headers $current_season = $seasons.data | Where-Object {$_.attributes.isCurrentSeason -eq $true} @@ -197,4 +196,7 @@ while($playerinfo.data.Count -gt $i) { $i++ } -$seasonstats | convertto-json -Depth 100| Out-File "$scriptroot/../data/player_season_data.json" \ No newline at end of file +$seasonstats | convertto-json -Depth 100| Out-File "$scriptroot/../data/player_season_data.json" + +remove-lock +Stop-Transcript \ No newline at end of file