From 747d7e155f4d9f7695371388236835db68a56b0e Mon Sep 17 00:00:00 2001 From: Ethan Park Date: Tue, 6 Jul 2021 11:54:40 -0700 Subject: [PATCH] Fixed issue #143 --- mlbgame/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlbgame/game.py b/mlbgame/game.py index 82ed175..8618b70 100644 --- a/mlbgame/game.py +++ b/mlbgame/game.py @@ -105,14 +105,14 @@ def scoreboard(year, month, day, home=None, away=None): elif game_tag == 'sg_game': try: p_pitcher_data = game.findall('p_pitcher') - p_pitcher_home_data = p_pitcher_data[1] # swapped positions + p_pitcher_home_data = p_pitcher_data[0] # swapped positions back p_pitcher_home = p_pitcher_home_data.find( 'pitcher').attrib['name'] p_pitcher_home_wins = int(p_pitcher_home_data. attrib['wins']) p_pitcher_home_losses = int(p_pitcher_home_data. attrib['losses']) - p_pitcher_away_data = p_pitcher_data[0] # swapped positions + p_pitcher_away_data = p_pitcher_data[1] # swapped positions back p_pitcher_away = p_pitcher_away_data.find( 'pitcher').attrib['name'] p_pitcher_away_wins = int(p_pitcher_away_data.