diff --git a/cmd/leagueabbr.go b/cmd/leagueabbr.go index 974a0b6..9376675 100644 --- a/cmd/leagueabbr.go +++ b/cmd/leagueabbr.go @@ -20,7 +20,7 @@ import ( ) // retrieved from https://statsapi.mlb.com/api/v1/leagues -var leagueIDs = map[string]int32{ +var leagueIDs = map[string]int{ "al": 103, "nl": 104, "nn2": 431, diff --git a/cmd/sportabbr.go b/cmd/sportabbr.go index 8275abb..5efc52a 100644 --- a/cmd/sportabbr.go +++ b/cmd/sportabbr.go @@ -20,7 +20,7 @@ import ( ) // retrieved from https://statsapi.mlb.com/api/v1/sports -var sportIDs = map[string]int32{ +var sportIDs = map[string]int{ "mlb": 1, "aaa": 11, "aa": 12, diff --git a/cmd/standings.go b/cmd/standings.go index 8c61f86..721b5f1 100644 --- a/cmd/standings.go +++ b/cmd/standings.go @@ -28,7 +28,7 @@ import ( var league leagueAbbr func standings(cmd *cobra.Command, args []string) { - var leagueIds []int32 + var leagueIds []int leagueIds = append(leagueIds, leagueIDs[string(league)]) req := statsAPIClient.StandingsAPI.Standings1(context.Background(), "regularSeason") diff --git a/cmd/teamabbr.go b/cmd/teamabbr.go index f604eb2..9c5f95c 100644 --- a/cmd/teamabbr.go +++ b/cmd/teamabbr.go @@ -20,7 +20,7 @@ import ( ) // retrieved from https://statsapi.mlb.com/api/v1/teams -var teamIDs = map[string]int32{ +var teamIDs = map[string]int{ "laa": 108, "az": 109, "bal": 110,