milb logging and manual cache clearing

This commit is contained in:
Chuck
2025-08-09 10:44:58 -05:00
parent a672abba6a
commit b4d5aef876
4 changed files with 168 additions and 1 deletions

View File

@@ -97,6 +97,12 @@ class BaseSoccerManager:
self.config_manager = ConfigManager(config)
def _get_timezone(self):
try:
return pytz.timezone(self.config_manager.get_timezone())
except pytz.UnknownTimeZoneError:
return pytz.utc
def _fetch_odds(self, game: Dict) -> None:
"""Fetch odds for a game and attach it to the game dictionary."""
# Check if odds should be shown for this sport