Update app.py
Browse files
app.py
CHANGED
|
@@ -213,10 +213,11 @@ def server(input, output, session):
|
|
| 213 |
start_date = str(input.date_id()[0])
|
| 214 |
end_date = str(input.date_id()[1])
|
| 215 |
selection_list = list(input.list_input())
|
|
|
|
| 216 |
print(selection_list)
|
| 217 |
df_agg = update.update_summary_select(df=df_total.filter((pl.col('game_date')>=start_date)&(pl.col('game_date')<=end_date)),
|
| 218 |
selection=selection_list)
|
| 219 |
-
df_agg = df_agg.select(selection_list+
|
| 220 |
for col in df_agg.columns[len(selection_list):]:
|
| 221 |
if col in rounding_dict:
|
| 222 |
df_agg = df_agg.with_columns(pl.col(col).round(rounding_dict[col]))
|
|
|
|
| 213 |
start_date = str(input.date_id()[0])
|
| 214 |
end_date = str(input.date_id()[1])
|
| 215 |
selection_list = list(input.list_input())
|
| 216 |
+
stat_list = list(input.list_stats())
|
| 217 |
print(selection_list)
|
| 218 |
df_agg = update.update_summary_select(df=df_total.filter((pl.col('game_date')>=start_date)&(pl.col('game_date')<=end_date)),
|
| 219 |
selection=selection_list)
|
| 220 |
+
df_agg = df_agg.select(selection_list+stat_list)
|
| 221 |
for col in df_agg.columns[len(selection_list):]:
|
| 222 |
if col in rounding_dict:
|
| 223 |
df_agg = df_agg.with_columns(pl.col(col).round(rounding_dict[col]))
|