adjust milb use of cache

This commit is contained in:
Chuck
2025-07-30 17:18:25 -05:00
parent ceb6d5fdac
commit a6f8237069
2 changed files with 6 additions and 2 deletions

View File

@@ -436,7 +436,11 @@ class CacheManager:
try:
config = self.config_manager.get_config()
sport_config = config.get(f"{sport_key}_scoreboard", {})
# For MiLB, look for "milb" config instead of "milb_scoreboard"
if sport_key == 'milb':
sport_config = config.get("milb", {})
else:
sport_config = config.get(f"{sport_key}_scoreboard", {})
return sport_config.get("live_update_interval", 60) # Default to 60 seconds
except Exception as e:
self.logger.warning(f"Could not get live_update_interval for {sport_key}: {e}")