Skip to content

Commit

Permalink
Merge pull request #237 from cwendt94/HockeyErrorNewTeam
Browse files Browse the repository at this point in the history
Add new Seattle Kraken
  • Loading branch information
cwendt94 authored Sep 8, 2021
2 parents e4fd785 + 6343acd commit faa79c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions espn_api/hockey/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
, 29: 'Columbus Blue Jackets'
, 30: 'Minnesota Wild'
, 37: 'Vegas Golden Knights'
, 124292: 'Seattle Krakens'
}

STATS_MAP = {
Expand Down
2 changes: 1 addition & 1 deletion espn_api/hockey/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, data):
self.lineupSlot = POSITION_MAP.get(data.get('lineupSlotId'), '')
self.eligibleSlots = [POSITION_MAP[pos] for pos in json_parsing(data, 'eligibleSlots')]
self.acquisitionType = json_parsing(data, 'acquisitionType')
self.proTeam = PRO_TEAM_MAP[json_parsing(data, 'proTeamId')]
self.proTeam = PRO_TEAM_MAP.get(json_parsing(data, 'proTeamId'), 'Unknown Team')
self.injuryStatus = json_parsing(data, 'injuryStatus')
self.stats = {}

Expand Down

0 comments on commit faa79c5

Please sign in to comment.