From 7caa1be8e4313d1063fc2bd05b7cb8afd42b3984 Mon Sep 17 00:00:00 2001 From: Christian Wendt Date: Thu, 15 Aug 2024 18:12:15 +0000 Subject: [PATCH] Football Base Player as Lineup Slot --- espn_api/football/player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/espn_api/football/player.py b/espn_api/football/player.py index 3d94d70b..fb7c08f8 100644 --- a/espn_api/football/player.py +++ b/espn_api/football/player.py @@ -12,6 +12,7 @@ def __init__(self, data, year): self.proTeam = PRO_TEAM_MAP[json_parsing(data, 'proTeamId')] self.injuryStatus = json_parsing(data, 'injuryStatus') self.onTeamId = json_parsing(data, 'onTeamId') + self.lineupSlot = POSITION_MAP.get(data.get('lineupSlotId'), '') self.stats = {} # Get players main position