Skip to content

Commit

Permalink
Add box player slot position so can compare to regular position
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendt94 committed Aug 5, 2019
1 parent 2cc1587 commit c66c097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ Team(Team Viking Queen)
15.1
>>> box_scores[0].home_lineup[2].projected_points
9.97
>>> box_scores[0].home_lineup[2].slot_position
'TE'
>>> box_scores[0].home_lineup[2].position
'TE'
>>> box_scores[0].home_lineup[2].name
Expand Down
2 changes: 1 addition & 1 deletion ff_espn_api/box_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class BoxPlayer(Player):
'''player with extra data from a matchup'''
def __init__(self, data):
super(BoxPlayer, self).__init__(data)
self.position = POSITION_MAP[data['lineupSlotId']]
self.slot_position = POSITION_MAP[data['lineupSlotId']]
self.points = 0
self.projected_points = 0

Expand Down

0 comments on commit c66c097

Please sign in to comment.