From 1ff1e244f3ded83b282470bb831b734ddc200b62 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Wed, 20 Sep 2023 14:54:12 -0500 Subject: [PATCH] Fixed new scorecard bug --- cogs/players.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/players.py b/cogs/players.py index 1f820ad..eb91826 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -1197,7 +1197,7 @@ class Players(commands.Cog): logging.info(f'sba-submit - reading scorecard') playtable = scorecard.worksheet_by_title('Playtable') all_plays = playtable.get_values('B3', 'BG300') - logging.info(f'all_plays: {all_plays}') + logging.debug(f'all_plays: {all_plays}') play_keys = [ 'play_num', 'batter_id', 'batter_pos', 'pitcher_id', 'on_base_code', 'inning_half', 'inning_num', @@ -1234,7 +1234,7 @@ class Players(commands.Cog): score_table = sc_tab.get_values('BW8', 'BY9') except pygsheets.WorksheetNotFound as e: sc_tab = scorecard.worksheet_by_title('Box Score') - score_table = sc_tab.get_values('T6', 'B7') + score_table = sc_tab.get_values('T6', 'V7') final_inning = all_plays[len(all_plays) - 1][6] # Log game result