jbisal commited on
Commit
b56737f
·
verified ·
1 Parent(s): 1ae6984

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -114,7 +114,8 @@ def get_stats_from_boxScore_data(url: str, stat: str) -> dict:
114
  logging.debug(f"Reached Line 116")
115
  if player[stat_key].replace('.', '').isdigit():
116
  logging.debug(f"Reached Line 118")
117
- stats[player[list(player.keys())[0]]] = pd.to_numeric(player[stat_key], errors='coerce')
 
118
  logging.debug(f"Reached BoxScores return, stats = {str(stats)}")
119
  return stats
120
  except Exception as e:
 
114
  logging.debug(f"Reached Line 116")
115
  if player[stat_key].replace('.', '').isdigit():
116
  logging.debug(f"Reached Line 118")
117
+ if player[list(player.keys())[0]] != "Team Totals":
118
+ stats[player[list(player.keys())[0]]] = pd.to_numeric(player[stat_key], errors='coerce')
119
  logging.debug(f"Reached BoxScores return, stats = {str(stats)}")
120
  return stats
121
  except Exception as e: