From 08cf4152f7b2d596a09d710b81c46d5777bc5051 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Mon, 18 Aug 2025 19:42:30 -0500 Subject: [PATCH] Improve odds ticker live game display formatting - Removed parentheses around scores for live games (e.g., 'Team 5' instead of 'Team (5)') - Improved bases section for baseball games: - Changed from '1', '2', '3' to '1B', '2B', '3B' for clarity - Changed from '---' to 'Empty' when no bases are occupied - This makes it much clearer what the information represents - Live games now show cleaner, more readable score format --- src/odds_ticker_manager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/odds_ticker_manager.py b/src/odds_ticker_manager.py index 5c3dfa1d..e7ea7f1c 100644 --- a/src/odds_ticker_manager.py +++ b/src/odds_ticker_manager.py @@ -930,8 +930,8 @@ class OddsTickerManager: if is_live and live_info: away_score = live_info.get('away_score', 0) home_score = live_info.get('home_score', 0) - away_team_text = f"{game.get('away_team_name', game.get('away_team', 'N/A'))} ({away_score})" - home_team_text = f"{game.get('home_team_name', game.get('home_team', 'N/A'))} ({home_score})" + away_team_text = f"{game.get('away_team_name', game.get('away_team', 'N/A'))} {away_score}" + home_team_text = f"{game.get('home_team_name', game.get('home_team', 'N/A'))} {home_score}" away_team_width = int(temp_draw.textlength(away_team_text, font=team_font)) home_team_width = int(temp_draw.textlength(home_team_text, font=team_font)) @@ -975,10 +975,10 @@ class OddsTickerManager: # Show bases occupied for baseball bases = live_info.get('bases_occupied', [False, False, False]) bases_text = "" - if bases[0]: bases_text += "1" - if bases[1]: bases_text += "2" - if bases[2]: bases_text += "3" - if not bases_text: bases_text = "---" + if bases[0]: bases_text += "1B" + if bases[1]: bases_text += "2B" + if bases[2]: bases_text += "3B" + if not bases_text: bases_text = "Empty" away_odds_text = f"Bases: {bases_text}" home_odds_text = f"Count: {live_info.get('balls', 0)}-{live_info.get('strikes', 0)}"