Comment update - remove later
This commit is contained in:
@@ -15,8 +15,7 @@ func GetLeaderboard(params battlenet.BattleNetAPIParams, bracket string) {
|
|||||||
var pvpIndex gamedata.PvpSeasonIndexAPI
|
var pvpIndex gamedata.PvpSeasonIndexAPI
|
||||||
json.Unmarshal(response, &pvpIndex)
|
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)
|
params.UrlOrEndpoint = fmt.Sprintf(gamedata.PvpLeaderboardEndpoint, pvpIndex.CurrentSeason.ID, bracket)
|
||||||
response = battlenet.BattleNetAPI(params, nil)
|
response = battlenet.BattleNetAPI(params, nil)
|
||||||
file, err := os.Create(fmt.Sprintf("pvp_season_%d_leaderboard-bracket_%s.json", pvpIndex.CurrentSeason.ID, bracket))
|
file, err := os.Create(fmt.Sprintf("pvp_season_%d_leaderboard-bracket_%s.json", pvpIndex.CurrentSeason.ID, bracket))
|
||||||
|
|||||||
Reference in New Issue
Block a user