James McCool commited on
Commit
0134c99
·
1 Parent(s): 132cb49

adjusting variable name

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +15 -15
src/streamlit_app.py CHANGED
@@ -98,10 +98,10 @@ with col1:
98
  elif split_var2 == 'All':
99
  team_var1 = view_var1
100
 
101
- split_var3 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='split_var3')
102
- if split_var3 == 'Specific Positions':
103
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
104
- elif split_var3 == 'All':
105
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
106
 
107
  proj_var1 = st.slider("Is there a certain projection range you want to view?", 0, 100, (10, 100), key='proj_var1')
@@ -115,10 +115,10 @@ with col1:
115
  elif split_var2 == 'All':
116
  team_var1 = view_var1
117
 
118
- split_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='split_var2')
119
- if split_var2 == 'Specific Positions':
120
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
121
- elif split_var2 == 'All':
122
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
123
 
124
  elif split_var1 == 'Fantasy Trends':
@@ -130,10 +130,10 @@ with col1:
130
  elif split_var2 == 'All':
131
  team_var1 = view_var1
132
 
133
- split_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='split_var2')
134
- if split_var2 == 'Specific Positions':
135
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
136
- elif split_var2 == 'All':
137
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
138
 
139
  elif split_var1 == 'FPPM Trends':
@@ -145,10 +145,10 @@ with col1:
145
  elif split_var2 == 'All':
146
  team_var1 = view_var1
147
 
148
- split_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='split_var2')
149
- if split_var2 == 'Specific Positions':
150
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
151
- elif split_var2 == 'All':
152
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
153
 
154
  elif split_var1 == 'Slate specific':
@@ -160,10 +160,10 @@ with col1:
160
  elif split_var2 == 'All':
161
  team_var1 = view_var1
162
 
163
- split_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='split_var2')
164
- if split_var2 == 'Specific Positions':
165
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
166
- elif split_var2 == 'All':
167
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
168
 
169
  proj_var1 = st.slider("Is there a certain projection range you want to view?", 0, 100, (10, 100), key='proj_var1')
 
98
  elif split_var2 == 'All':
99
  team_var1 = view_var1
100
 
101
+ split_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='split_var2')
102
+ if split_var2 == 'Specific Positions':
103
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
104
+ elif split_var2 == 'All':
105
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
106
 
107
  proj_var1 = st.slider("Is there a certain projection range you want to view?", 0, 100, (10, 100), key='proj_var1')
 
115
  elif split_var2 == 'All':
116
  team_var1 = view_var1
117
 
118
+ pos_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='pos_var2')
119
+ if pos_var2 == 'Specific Positions':
120
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
121
+ elif pos_var2 == 'All':
122
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
123
 
124
  elif split_var1 == 'Fantasy Trends':
 
130
  elif split_var2 == 'All':
131
  team_var1 = view_var1
132
 
133
+ pos_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='pos_var2')
134
+ if pos_var2 == 'Specific Positions':
135
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
136
+ elif pos_var2 == 'All':
137
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
138
 
139
  elif split_var1 == 'FPPM Trends':
 
145
  elif split_var2 == 'All':
146
  team_var1 = view_var1
147
 
148
+ pos_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='pos_var2')
149
+ if pos_var2 == 'Specific Positions':
150
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
151
+ elif pos_var2 == 'All':
152
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
153
 
154
  elif split_var1 == 'Slate specific':
 
160
  elif split_var2 == 'All':
161
  team_var1 = view_var1
162
 
163
+ pos_var2 = st.radio("Would you like to view all positions or specific ones?", ('All', 'Specific Positions'), key='pos_var2')
164
+ if pos_var2 == 'Specific Positions':
165
  pos_var1 = st.multiselect('Which positions would you like to include in the tables?', options = ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_var1')
166
+ elif pos_var2 == 'All':
167
  pos_var1 = ['PG', 'SG', 'SF', 'PF', 'C']
168
 
169
  proj_var1 = st.slider("Is there a certain projection range you want to view?", 0, 100, (10, 100), key='proj_var1')