jbisal commited on
Commit
43a7d4c
·
verified ·
1 Parent(s): 3e7ef8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def get_stats_from_boxScore_data(url: str, stat: str) -> dict:
104
  stat_key = ('Basic Box Score Stats', stat)
105
  for teams in box_scores.keys():
106
  for player in box_scores[teams]:
107
- if stat_key in player.values():
108
  if player[stat_key] is not None:
109
  if player[stat_key].replace('.', '').isdigit():
110
  stats[player[list(player.keys())[0]]] = pd.to_numeric(player[stat_key], errors='coerce')
 
104
  stat_key = ('Basic Box Score Stats', stat)
105
  for teams in box_scores.keys():
106
  for player in box_scores[teams]:
107
+ if stat_key in player:
108
  if player[stat_key] is not None:
109
  if player[stat_key].replace('.', '').isdigit():
110
  stats[player[list(player.keys())[0]]] = pd.to_numeric(player[stat_key], errors='coerce')