Update app.py
Browse files
app.py
CHANGED
|
@@ -489,6 +489,9 @@ 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 |
df_pitcher_info = scrape.get_players(sport_id=int(input.level_input()), season=int(input.year_input()), game_type = [input.type_input()]).filter(
|
| 493 |
(pl.col("position").is_in(['P','TWP']))|
|
| 494 |
(pl.col("player_id").is_in([686846]))
|
|
|
|
| 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(
|
| 496 |
(pl.col("position").is_in(['P','TWP']))|
|
| 497 |
(pl.col("player_id").is_in([686846]))
|