Update app.py
Browse files
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.
|
| 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(
|