Spaces:
Running
Running
James McCool
commited on
Commit
·
56a6051
1
Parent(s):
a581cc8
added some more date filtering options
Browse files
app.py
CHANGED
@@ -170,8 +170,12 @@ with tab1:
|
|
170 |
raw_baselines = site_baselines[site_baselines['slate'] == 'Secondary Slate']
|
171 |
elif slate_split == 'Backlog':
|
172 |
raw_baselines = site_backlog
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
175 |
split_var2 = st.radio("Are you running the full slate or certain games?", ('Full Slate Run', 'Specific Games'), key='split_var2')
|
176 |
if split_var2 == 'Specific Games':
|
177 |
team_var2 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var2')
|
|
|
170 |
raw_baselines = site_baselines[site_baselines['slate'] == 'Secondary Slate']
|
171 |
elif slate_split == 'Backlog':
|
172 |
raw_baselines = site_backlog
|
173 |
+
view_all = st.checkbox("Do you want to view all dates?", key='view_all')
|
174 |
+
if view_all:
|
175 |
+
raw_baselines = raw_baselines
|
176 |
+
else:
|
177 |
+
date_var2 = st.date_input("Which date would you like to view?", key='date_var2')
|
178 |
+
raw_baselines = raw_baselines[raw_baselines['Date'] == date_var2.strftime('%m-%d-%Y')]
|
179 |
split_var2 = st.radio("Are you running the full slate or certain games?", ('Full Slate Run', 'Specific Games'), key='split_var2')
|
180 |
if split_var2 == 'Specific Games':
|
181 |
team_var2 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var2')
|