James McCool commited on
Commit ·
2b43afc
1
Parent(s): 295c980
Update sport and position selections for contest analysis
Browse files
app.py
CHANGED
|
@@ -281,7 +281,7 @@ if selected_tab == 'Data Load':
|
|
| 281 |
sport_options, date_options = st.columns(2)
|
| 282 |
parse_type = 'Manual'
|
| 283 |
with sport_options:
|
| 284 |
-
sport_init = st.selectbox("Select Sport", ['NFL', 'MLB', 'MMA', 'GOLF', 'NBA', 'NHL', 'CFB', 'TEN', 'NAS'], key='sport_init')
|
| 285 |
type_init = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_init')
|
| 286 |
try:
|
| 287 |
contest_names, curr_info = grab_contest_names(db, sport_init, type_init)
|
|
@@ -780,7 +780,7 @@ if selected_tab == 'Contest Analysis':
|
|
| 780 |
elif st.session_state['sport_select'] == 'NBA':
|
| 781 |
pos_select = st.multiselect("Select your position(s)", ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_select')
|
| 782 |
elif st.session_state['sport_select'] == 'WNBA':
|
| 783 |
-
pos_select = st.multiselect("Select your position(s)", ['
|
| 784 |
elif st.session_state['sport_select'] == 'NHL':
|
| 785 |
pos_select = st.multiselect("Select your position(s)", ['W', 'C', 'D', 'G'], key='pos_select')
|
| 786 |
elif st.session_state['sport_select'] == 'MMA':
|
|
|
|
| 281 |
sport_options, date_options = st.columns(2)
|
| 282 |
parse_type = 'Manual'
|
| 283 |
with sport_options:
|
| 284 |
+
sport_init = st.selectbox("Select Sport", ['NFL', 'MLB', 'MMA', 'GOLF', 'NBA', 'WNBA', 'NHL', 'CFB', 'TEN', 'NAS'], key='sport_init')
|
| 285 |
type_init = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_init')
|
| 286 |
try:
|
| 287 |
contest_names, curr_info = grab_contest_names(db, sport_init, type_init)
|
|
|
|
| 780 |
elif st.session_state['sport_select'] == 'NBA':
|
| 781 |
pos_select = st.multiselect("Select your position(s)", ['PG', 'SG', 'SF', 'PF', 'C'], key='pos_select')
|
| 782 |
elif st.session_state['sport_select'] == 'WNBA':
|
| 783 |
+
pos_select = st.multiselect("Select your position(s)", ['G', 'F'], key='pos_select')
|
| 784 |
elif st.session_state['sport_select'] == 'NHL':
|
| 785 |
pos_select = st.multiselect("Select your position(s)", ['W', 'C', 'D', 'G'], key='pos_select')
|
| 786 |
elif st.session_state['sport_select'] == 'MMA':
|