nesticot commited on
Commit
c0d2882
·
verified ·
1 Parent(s): c266c7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -335,7 +335,7 @@ def server(input, output, session):
335
  return df
336
 
337
  @render.ui
338
- @reactive.event(input.player_button, input.level_input,input.year_input, ignore_none=False)
339
  def player_select_ui():
340
  # Get the list of pitchers for the selected level and season
341
  df_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input())).filter(
@@ -348,7 +348,7 @@ def server(input, output, session):
348
  return ui.input_select("pitcher_id", "Select Pitcher", pitcher_dict, selectize=True)
349
 
350
  @render.ui
351
- @reactive.event(input.player_button,input.pitcher_id,input.year_input, ignore_none=False)
352
  def date_id():
353
  # Create a date range input for selecting the date range within the selected year
354
  return ui.input_date_range("date_id", "Select Date Range",
 
335
  return df
336
 
337
  @render.ui
338
+ @reactive.event(input.player_button, input.level_input,input.year_input, input.type_input, ignore_none=False)
339
  def player_select_ui():
340
  # Get the list of pitchers for the selected level and season
341
  df_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input())).filter(
 
348
  return ui.input_select("pitcher_id", "Select Pitcher", pitcher_dict, selectize=True)
349
 
350
  @render.ui
351
+ @reactive.event(input.player_button,input.year_input, ignore_none=False)
352
  def date_id():
353
  # Create a date range input for selecting the date range within the selected year
354
  return ui.input_date_range("date_id", "Select Date Range",