From f56e0e955a2ddfebbd162f40e610ef10ea505ea6 Mon Sep 17 00:00:00 2001 From: Christian Wendt Date: Mon, 2 Oct 2023 15:52:14 +0000 Subject: [PATCH] Settings Add Playoff matchup period length --- espn_api/base_settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/espn_api/base_settings.py b/espn_api/base_settings.py index 0b27e5ef..915982bb 100644 --- a/espn_api/base_settings.py +++ b/espn_api/base_settings.py @@ -14,6 +14,7 @@ def __init__(self, data): self.name = data['name'] self.tie_rule = data['scoringSettings']['matchupTieRule'] self.playoff_tie_rule = data['scoringSettings']['playoffMatchupTieRule'] + self.playoff_matchup_period_length = data.get('scheduleSettings', {}).get('playoffMatchupPeriodLength', 0) self.playoff_seed_tie_rule = data['scheduleSettings']['playoffSeedingRule'] self.scoring_type = data.get('scoringSettings', {}).get('scoringType') self.faab = data['acquisitionSettings']['isUsingAcquisitionBudget']