Update app.py
Browse files201 unmodified lines202203204205206207208209210211201 unmodified linesdef player_select_ui():# Get the list of pitchers for the selected level and seasondf_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input()), game_type = [input.type_input()]).filter(pl.col("position").is_in(['P','TWP'])).sort("name")# Create a dictionary of pitcher IDs and namespitcher_dict = dict(zip(df_pitcher_info['player_id'], df_pitcher_info['name']))# Return a select input for choosing a pitcherreturn ui.input_select("pitcher_id", "Select Pitcher", pitcher_dict, selectize=True)201 unmodified lines202203204205206207208209210211212213214215216217201 unmodified linesdef player_select_ui():# Get the list of pitchers for the selected level and seasondf_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input()), game_type = [input.type_input()]).filter((pl.col("position").is_in(['P','TWP']))|(pl.col("player_id").is_in([686846]))).sort("name")# Create a dictionary of pitcher IDs and namespitcher_dict = dict(zip(df_pitcher_info['player_id'], df_pitcher_info['name']))# Return a select input for choosing a pitcherreturn ui.input_select("pitcher_id", "Select Pitcher", pitcher_dict, selectize=True)
app.py+7-1