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