Compare commits
4 Commits
14c12c2cdb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
3bed2b956d
|
|||
|
ccbd430f0a
|
|||
|
ae532dd193
|
|||
|
a6bfea6b65
|
@@ -15,8 +15,7 @@ func GetLeaderboard(params battlenet.BattleNetAPIParams, bracket string) {
|
||||
var pvpIndex gamedata.PvpSeasonIndexAPI
|
||||
json.Unmarshal(response, &pvpIndex)
|
||||
|
||||
// Get the leaderboards for the current PVP season and Bracket
|
||||
|
||||
// Get the leaderboards for the current PVP season and desired Bracket
|
||||
params.UrlOrEndpoint = fmt.Sprintf(gamedata.PvpLeaderboardEndpoint, pvpIndex.CurrentSeason.ID, bracket)
|
||||
response = battlenet.BattleNetAPI(params, nil)
|
||||
file, err := os.Create(fmt.Sprintf("pvp_season_%d_leaderboard-bracket_%s.json", pvpIndex.CurrentSeason.ID, bracket))
|
||||
|
||||
Reference in New Issue
Block a user