fixed linter errors in NFL and NCAA FB

This commit is contained in:
Chuck
2025-05-27 17:44:34 -05:00
parent 5329805f0b
commit 8b15218b1e
2 changed files with 13 additions and 7 deletions

View File

@@ -712,7 +712,7 @@ class NFLRecentManager(BaseNFLManager): # Renamed class
for event in events:
game = self._extract_game_details(event)
# Filter criteria: must be final, within time window
if game and game['is_final'] and game['is_within_window']:
if game and game['is_final'] and game.get('is_within_window', True): # Assume within window if key missing
processed_games.append(game)
# Filter for favorite teams
@@ -884,7 +884,7 @@ class NFLUpcomingManager(BaseNFLManager): # Renamed class
for event in events:
game = self._extract_game_details(event)
# Filter criteria: must be upcoming ('pre' state) and within time window
if game and game['is_upcoming'] and game['is_within_window']:
if game and game['is_upcoming'] and game.get('is_within_window', True): # Assume within window if key missing
processed_games.append(game)
# Filter for favorite teams