File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ class AttendanceRecords:
116116 gameshometotal : int
117117 year : str
118118 attendanceaverageytd : int
119- attendancetotal : int
120119 gametype : Union [AttendenceGameType , dict ]
121120 team : Union [Team , dict ]
121+ attendancetotal : Optional [int ] = None
122122 attendanceaverageaway : Optional [int ] = None
123123 attendanceaveragehome : Optional [int ] = None
124124 attendancehigh : Optional [int ] = None
Original file line number Diff line number Diff line change @@ -165,9 +165,9 @@ class GameInfo:
165165 delaydurationminutes : int
166166 The length of delay for the game in minutes
167167 """
168- attendance : int
169168 firstpitch : str
170- gamedurationminutes : int
169+ attendance : Optional [int ] = None
170+ gamedurationminutes : Optional [int ] = None
171171 delaydurationminutes : Optional [int ] = None
172172
173173
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " python-mlb-statsapi"
7- version = " 0.5.17 "
7+ version = " 0.5.18 "
88
99authors = [
1010 { name =" Matthew Spah" , email =" spahmatthew@gmail.com" },
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def test_mlb_get_person_id(self):
9191
9292 def test_mlb_get_person_id_with_sportid (self ):
9393 """mlb get_person_id should return a person id"""
94- id = self .mlb .get_people_id ('Fernando Abad ' , sport_id = 11 )
95- self .assertEqual (id , [472551 ])
94+ id = self .mlb .get_people_id ('Tyler Black ' , sport_id = 11 )
95+ self .assertEqual (id , [672012 ])
9696
9797 def test_mlb_get_invalid_person_id (self ):
9898 """mlb get_person_id should return empty list for invalid name"""
You can’t perform that action at this time.
0 commit comments