diff --git a/espn_api/football/team.py b/espn_api/football/team.py index 821e0fe5..893373ca 100644 --- a/espn_api/football/team.py +++ b/espn_api/football/team.py @@ -13,6 +13,8 @@ def __init__(self, data, roster, member, schedule, year): self.ties = data['record']['overall']['ties'] self.points_for = data['record']['overall']['pointsFor'] self.points_against = round(data['record']['overall']['pointsAgainst'], 2) + self.playoff_pct = data.get('currentSimulationResults', {}).get('playoffPct', 0) * 100 + self.draft_projected_rank = data.get('draftDayProjectedRank', 0) self.owner = 'None' if member: self.owner = "%s %s" % (member['firstName'], diff --git a/espn_api/requests/espn_requests.py b/espn_api/requests/espn_requests.py index 5247826d..967e2bec 100644 --- a/espn_api/requests/espn_requests.py +++ b/espn_api/requests/espn_requests.py @@ -54,7 +54,7 @@ def get(self, params: dict = None, headers: dict = None, extend: str = ''): def get_league(self): '''Gets all of the leagues initial data (teams, roster, matchups, settings)''' params = { - 'view': ['mTeam', 'mRoster', 'mMatchup', 'mSettings'] + 'view': ['mTeam', 'mRoster', 'mMatchup', 'mSettings', 'mStandings'] } data = self.league_get(params=params) return data