nesticot commited on
Commit
5505993
·
verified ·
1 Parent(s): e13e8b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -489,7 +489,7 @@ def server(input, output, session):
489
  @reactive.event(input.player_button, input.year_input, input.level_input, input.type_input,ignore_none=False)
490
  def player_select_ui():
491
  # Get the list of pitchers for the selected level and season
492
- if input.sport_id() == '21':
493
  return ui.input_select("pitcher_id", "Select Pitcher", [806258], selectize=True)
494
 
495
  df_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input()), game_type = [input.type_input()]).filter(
 
489
  @reactive.event(input.player_button, input.year_input, input.level_input, input.type_input,ignore_none=False)
490
  def player_select_ui():
491
  # Get the list of pitchers for the selected level and season
492
+ if input.level_input() == '21':
493
  return ui.input_select("pitcher_id", "Select Pitcher", [806258], selectize=True)
494
 
495
  df_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input()), game_type = [input.type_input()]).filter(