change int32 to int

This commit is contained in:
filifa 2025-04-06 22:29:56 -04:00
parent 0147bef26f
commit 0e09e4b064
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ import (
) )
// retrieved from https://statsapi.mlb.com/api/v1/leagues // retrieved from https://statsapi.mlb.com/api/v1/leagues
var leagueIDs = map[string]int32{ var leagueIDs = map[string]int{
"al": 103, "al": 103,
"nl": 104, "nl": 104,
"nn2": 431, "nn2": 431,

View File

@ -20,7 +20,7 @@ import (
) )
// retrieved from https://statsapi.mlb.com/api/v1/sports // retrieved from https://statsapi.mlb.com/api/v1/sports
var sportIDs = map[string]int32{ var sportIDs = map[string]int{
"mlb": 1, "mlb": 1,
"aaa": 11, "aaa": 11,
"aa": 12, "aa": 12,

View File

@ -28,7 +28,7 @@ import (
var league leagueAbbr var league leagueAbbr
func standings(cmd *cobra.Command, args []string) { func standings(cmd *cobra.Command, args []string) {
var leagueIds []int32 var leagueIds []int
leagueIds = append(leagueIds, leagueIDs[string(league)]) leagueIds = append(leagueIds, leagueIDs[string(league)])
req := statsAPIClient.StandingsAPI.Standings1(context.Background(), "regularSeason") req := statsAPIClient.StandingsAPI.Standings1(context.Background(), "regularSeason")

View File

@ -20,7 +20,7 @@ import (
) )
// retrieved from https://statsapi.mlb.com/api/v1/teams // retrieved from https://statsapi.mlb.com/api/v1/teams
var teamIDs = map[string]int32{ var teamIDs = map[string]int{
"laa": 108, "laa": 108,
"az": 109, "az": 109,
"bal": 110, "bal": 110,