From e452a97b92ca2d98cee13a6e3fca0d5286bff9b7 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sat, 19 Jul 2025 16:18:09 -0500 Subject: [PATCH] ensure we are pulling game Id's for odds --- src/mlb_manager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mlb_manager.py b/src/mlb_manager.py index e8081795..d9169bb0 100644 --- a/src/mlb_manager.py +++ b/src/mlb_manager.py @@ -349,6 +349,7 @@ class BaseMLBManager: self.logger.info("Using test mode data for MLB") return { 'test_game_1': { + 'id': 'test_game_1', 'away_team': 'TB', 'home_team': 'TEX', 'away_score': 3, @@ -519,6 +520,7 @@ class BaseMLBManager: bases_occupied = [False, False, False] all_games[game_id] = { + 'id': game_id, 'away_team': away_abbr, 'home_team': home_abbr, 'away_score': away_team['score'], @@ -975,7 +977,9 @@ class MLBRecentManager(BaseMLBManager): def update(self): """Update recent games data.""" current_time = time.time() + self.logger.info("Checking for recent MLB games...") if current_time - self.last_update < self.update_interval: + self.logger.info("Skipping recent games update, interval not reached.") return try: @@ -1086,7 +1090,9 @@ class MLBUpcomingManager(BaseMLBManager): def update(self): """Update upcoming games data.""" current_time = time.time() + self.logger.info("Checking for upcoming MLB games...") if current_time - self.last_update < self.update_interval: + self.logger.info("Skipping upcoming games update, interval not reached.") return try: