diff --git a/README.md b/README.md index c38bb44e..3e4a86b8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ff_espn_api/box_player.py b/ff_espn_api/box_player.py index a096182b..a165f685 100644 --- a/ff_espn_api/box_player.py +++ b/ff_espn_api/box_player.py @@ -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