Skip to content

Commit 3811328

Browse files
committed
Adds missing timeremainingseconds to homerunderby
1 parent 86d96ae commit 3811328

2 files changed

Lines changed: 4 additions & 0 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):

0 commit comments

Comments
 (0)