Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cwendt94/espn-api
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendt94 committed Jan 22, 2021
2 parents 5f52d7e + 4735145 commit c688b2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions espn_api/basketball/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@
'44': '',
'45': '',
}


#ACTIVITY_MAP = {
#}

ACTIVITY_MAP = {
178: 'FA ADDED',
Expand All @@ -131,4 +127,3 @@
'WAIVER': 180,
'TRADED': 244
}

2 changes: 1 addition & 1 deletion espn_api/basketball/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def __init__(self, data):
self.name = json_parsing(data, 'fullName')
self.playerId = json_parsing(data, 'id')
self.position = POSITION_MAP[json_parsing(data, 'defaultPositionId') - 1]
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')]
Expand All @@ -33,4 +34,3 @@ def __init__(self, data):

def __repr__(self):
return 'Player(%s)' % (self.name, )

0 comments on commit c688b2a

Please sign in to comment.