update timeout logic (#49)

This commit is contained in:
Chuck
2025-09-18 23:29:48 -04:00
committed by GitHub
parent 86049ca679
commit 31ec0018be

View File

@@ -590,8 +590,8 @@ class BaseNFLManager: # Renamed class
# Timeouts (assuming max 3 per half, not carried over well in standard API) # Timeouts (assuming max 3 per half, not carried over well in standard API)
# API often provides 'timeouts' directly under team, but reset logic is tricky # API often provides 'timeouts' directly under team, but reset logic is tricky
# We might need to simplify this or just use a fixed display if API is unreliable # We might need to simplify this or just use a fixed display if API is unreliable
home_timeouts = home_team.get("timeouts", 3) # Default to 3 if not specified home_timeouts = situation.get("homeTimeouts", 3) if situation else 3 # Default to 3 if not specified
away_timeouts = away_team.get("timeouts", 3) # Default to 3 if not specified away_timeouts = situation.get("awayTimeouts", 3) if situation else 3 # Default to 3 if not specified
details = { details = {