Skip to content

Commit

Permalink
Merge pull request #593 from cwendt94/hockey_add_new_team
Browse files Browse the repository at this point in the history
Hockey Add new Team Utah Hockey Club
  • Loading branch information
cwendt94 authored Oct 16, 2024
2 parents 54f2ba4 + c6d13b2 commit 1da3c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 @@ def __init__(self, data, pro_schedule):
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')

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

0 comments on commit 1da3c9b

Please sign in to comment.