Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hockey Add new Team Utah Hockey Club #593

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion espn_api/hockey/box_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if player['proTeamId'] in pro_schedule:
(opp_id, date) = pro_schedule[player['proTeamId']]
self.game_played = 100 if datetime.now() > datetime.fromtimestamp(date / 1000.0) + timedelta(hours=3) else 0
self.pro_opponent = PRO_TEAM_MAP[opp_id]
self.pro_opponent = PRO_TEAM_MAP.get(opp_id, 'Unknown Team')

Check warning on line 24 in espn_api/hockey/box_player.py

View check run for this annotation

Codecov / codecov/patch

espn_api/hockey/box_player.py#L24

Added line #L24 was not covered by tests

player_stats = player.get('stats', [])
for stats in player_stats:
Expand Down
1 change: 1 addition & 0 deletions espn_api/hockey/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
, 30: 'Minnesota Wild'
, 37: 'Vegas Golden Knights'
, 124292: 'Seattle Kraken'
, 129764: 'Utah Hockey Club'
}

STATS_MAP = {
Expand Down
Loading