Compare commits
5 Commits
main
...
14c12c2cdb
| Author | SHA1 | Date | |
|---|---|---|---|
|
14c12c2cdb
|
|||
|
a0fce7bac8
|
|||
|
8a99c6c184
|
|||
|
f773677bcf
|
|||
|
|
47f4e2f783 |
@@ -15,7 +15,8 @@ func GetLeaderboard(params battlenet.BattleNetAPIParams, bracket string) {
|
||||
var pvpIndex gamedata.PvpSeasonIndexAPI
|
||||
json.Unmarshal(response, &pvpIndex)
|
||||
|
||||
// Get the leaderboards for the current PVP season and desired Bracket
|
||||
// Get the leaderboards for the current PVP season and 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