Comment update - remove later

This commit is contained in:
2025-06-10 18:39:57 -05:00
parent ccbd430f0a
commit 3bed2b956d

View File

@@ -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))