mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
specific logging messages for odds manager to see if we are missing odds or display method
This commit is contained in:
@@ -108,6 +108,7 @@ class BaseMLBManager:
|
||||
|
||||
def _draw_odds_info(self, draw: ImageDraw.Draw, odds_data: Dict[str, Any], width: int, height: int) -> None:
|
||||
"""Draw odds information on the display."""
|
||||
self.logger.info(f"Attempting to draw odds with data: {json.dumps(odds_data, indent=2)}")
|
||||
if not odds_data:
|
||||
return
|
||||
|
||||
@@ -265,6 +266,7 @@ class BaseMLBManager:
|
||||
|
||||
# Draw odds if available
|
||||
if 'odds' in game_data:
|
||||
self.logger.info(f"Found odds data for game {game_data.get('id')}, attempting to draw.")
|
||||
self._draw_odds_info(draw, game_data['odds'], width, height)
|
||||
|
||||
# For recent/final games, show scores and status
|
||||
@@ -295,6 +297,7 @@ class BaseMLBManager:
|
||||
|
||||
# Draw odds if available
|
||||
if 'odds' in game_data:
|
||||
self.logger.info(f"Found odds data for game {game_data.get('id')}, attempting to draw.")
|
||||
self._draw_odds_info(draw, game_data['odds'], width, height)
|
||||
|
||||
# For live games, show detailed game state
|
||||
@@ -325,6 +328,7 @@ class BaseMLBManager:
|
||||
|
||||
# Draw odds if available
|
||||
if 'odds' in game_data:
|
||||
self.logger.info(f"Found odds data for game {game_data.get('id')}, attempting to draw.")
|
||||
self._draw_odds_info(draw, game_data['odds'], width, height)
|
||||
|
||||
return image
|
||||
|
||||
Reference in New Issue
Block a user