Update app.py
Browse files
app.py
CHANGED
|
@@ -117,8 +117,9 @@ app_ui = ui.page_fluid(
|
|
| 117 |
ui.panel_sidebar(
|
| 118 |
# Row for selecting season and level
|
| 119 |
ui.row(
|
| 120 |
-
ui.column(
|
| 121 |
-
ui.column(
|
|
|
|
| 122 |
),
|
| 123 |
# Row for the action button to get player list
|
| 124 |
ui.row(ui.input_action_button("player_button", "Get Player List", class_="btn-primary")),
|
|
@@ -309,7 +310,8 @@ def server(input, output, session):
|
|
| 309 |
season = year_input,
|
| 310 |
player_id = player_input,
|
| 311 |
start_date = start_date,
|
| 312 |
-
end_date = end_date
|
|
|
|
| 313 |
|
| 314 |
data_list = scrape.get_data(game_list_input = game_list[:])
|
| 315 |
df = (stuff_apply.stuff_apply(fe.feature_engineering(update.update(scrape.get_data_df(data_list = data_list).filter(
|
|
|
|
| 117 |
ui.panel_sidebar(
|
| 118 |
# Row for selecting season and level
|
| 119 |
ui.row(
|
| 120 |
+
ui.column(4, ui.input_select('year_input', 'Select Season', year_list, selected=2024)),
|
| 121 |
+
ui.column(4, ui.input_select('level_input', 'Select Level', level_dict)),
|
| 122 |
+
ui.column(4, ui.input_select('type_input', 'Select Type', type_dict,selected='R'))
|
| 123 |
),
|
| 124 |
# Row for the action button to get player list
|
| 125 |
ui.row(ui.input_action_button("player_button", "Get Player List", class_="btn-primary")),
|
|
|
|
| 310 |
season = year_input,
|
| 311 |
player_id = player_input,
|
| 312 |
start_date = start_date,
|
| 313 |
+
end_date = end_date,
|
| 314 |
+
game_type = [input.type_input()])
|
| 315 |
|
| 316 |
data_list = scrape.get_data(game_list_input = game_list[:])
|
| 317 |
df = (stuff_apply.stuff_apply(fe.feature_engineering(update.update(scrape.get_data_df(data_list = data_list).filter(
|