Update app.py
Browse files
app.py
CHANGED
|
@@ -502,7 +502,7 @@ def server(input, output, session):
|
|
| 502 |
# Get game data
|
| 503 |
|
| 504 |
|
| 505 |
-
game_list = scrape.get_schedule(year_input=[year_input], sport_id=[sport_id], game_type=
|
| 506 |
data_list = scrape.get_data(game_list_input=game_list[:])
|
| 507 |
df_pitcher_info = scrape.get_data_df(data_list=data_list).filter((pl.col("start_speed") >= 50)).sort('pitcher_name')
|
| 508 |
pitcher_dict = dict(zip(df_pitcher_info['pitcher_id'], df_pitcher_info['pitcher_name']))
|
|
|
|
| 502 |
# Get game data
|
| 503 |
|
| 504 |
|
| 505 |
+
game_list = scrape.get_schedule(year_input=[year_input], sport_id=[sport_id], game_type=game_type).filter((pl.col('date')>=start_date)&(pl.col('date')<=end_date))['game_id']
|
| 506 |
data_list = scrape.get_data(game_list_input=game_list[:])
|
| 507 |
df_pitcher_info = scrape.get_data_df(data_list=data_list).filter((pl.col("start_speed") >= 50)).sort('pitcher_name')
|
| 508 |
pitcher_dict = dict(zip(df_pitcher_info['pitcher_id'], df_pitcher_info['pitcher_name']))
|