Fixed new scorecard bug
This commit is contained in:
parent
75bcf10da5
commit
1ff1e244f3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user