Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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:
|