Skip to content

Commit e549ba4

Browse files
authored
Merge pull request #221 from zero-sum-seattle/issue_220_and_218_fix
Issue 220 and 218 fix
2 parents 86d96ae + 1cf0ff9 commit e549ba4

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

mlbstatsapi/mlb_dataadapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def get(self, endpoint: str, ep_params: Dict = None, data: Dict = None) -> MlbRe
9898
"""
9999

100100
full_url = self.url + endpoint
101+
print (full_url)
101102
logline_pre = f'url={full_url}'
102103
logline_post = " ,".join((logline_pre, 'success={}, status_code={}, message={}, url={}'))
103104

mlbstatsapi/models/homerunderby/attributes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ class Hits:
213213
isbonustime : bool
214214
A boolean indicating whether the hit occurred during bonus time. This
215215
attribute is a duplicate of the `bonustime` attribute.
216+
timeremainingseconds : int
217+
A integer indicated the amount of time remaining in seconds
216218
istiebreaker : bool
217219
A boolean indicating whether the hit occurred during a tiebreaker.
218220
This attribute is a duplicate of the `tiebreaker` attribute.
@@ -225,6 +227,7 @@ class Hits:
225227
timeremaining: str
226228
isbonustime: bool
227229
istiebreaker: bool
230+
timeremainingseconds: Optional[int] = None
228231
playid: Optional[str] = None
229232

230233
def __post_init__(self):

mlbstatsapi/models/people/people.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,16 @@ class Player(Person):
179179
status :
180180
Status of the player
181181
parentteamid : int
182-
parent team id
182+
parent team id
183+
note : str
184+
Optional str that allows a note to be added to a player. Such cases seen
185+
include injury notes.
183186
"""
184187
parentteamid: Optional[int] = None
185188
jerseynumber: str
186189
position: InitVar[dict]
187190
status: Union[Status, dict]
191+
note: Optional[str] = None
188192

189193
def __post_init__(self, position: dict):
190194
self.primaryposition = Position(**position) if position else None

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "python-mlb-statsapi"
7-
version = "0.5.23"
7+
version = "0.5.24"
88

99
authors = [
1010
{ name="Matthew Spah", email="spahmatthew@gmail.com" },

0 commit comments

Comments
 (0)