This commit is contained in:
Lanta 2023-11-28 10:05:09 +01:00
parent c412d380a6
commit 4db637b414

View file

@ -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"
$seasonstats | convertto-json -Depth 100| Out-File "$scriptroot/../data/player_season_data.json"
remove-lock
Stop-Transcript