James McCool
commited on
Commit
·
dc0d88b
1
Parent(s):
0e549ce
Add TENNIS option to sport selection and position filtering in app.py
Browse files- Expanded the sport selection dropdown to include 'TENNIS', enhancing user options for contest entries.
- Added position selection logic for 'TENNIS', ensuring users can specify their preferences for this sport, improving overall functionality and user experience.
app.py
CHANGED
@@ -120,7 +120,7 @@ with tab1:
|
|
120 |
sport_options, date_options = st.columns(2)
|
121 |
parse_type = 'Manual'
|
122 |
with sport_options:
|
123 |
-
sport_select = st.selectbox("Select Sport", ['MLB', 'MMA', 'GOLF', 'NBA', 'NHL', 'WNBA'], key='sport_select')
|
124 |
type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
|
125 |
try:
|
126 |
contest_names, curr_info = grab_contest_names(db, sport_select, type_var)
|
@@ -467,6 +467,8 @@ with tab2:
|
|
467 |
pos_select = st.multiselect("Select your position(s)", ['All the same position', 'So', 'Yeah', 'Idk'], key='pos_select')
|
468 |
elif sport_select == 'GOLF':
|
469 |
pos_select = st.multiselect("Select your position(s)", ['All the same position', 'So', 'Yeah', 'Idk'], key='pos_select')
|
|
|
|
|
470 |
submitted = st.form_submit_button("Submit")
|
471 |
if submitted:
|
472 |
if pos_var == 'Specific':
|
|
|
120 |
sport_options, date_options = st.columns(2)
|
121 |
parse_type = 'Manual'
|
122 |
with sport_options:
|
123 |
+
sport_select = st.selectbox("Select Sport", ['MLB', 'MMA', 'GOLF', 'NBA', 'NHL', 'WNBA', 'TENNIS'], key='sport_select')
|
124 |
type_var = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
|
125 |
try:
|
126 |
contest_names, curr_info = grab_contest_names(db, sport_select, type_var)
|
|
|
467 |
pos_select = st.multiselect("Select your position(s)", ['All the same position', 'So', 'Yeah', 'Idk'], key='pos_select')
|
468 |
elif sport_select == 'GOLF':
|
469 |
pos_select = st.multiselect("Select your position(s)", ['All the same position', 'So', 'Yeah', 'Idk'], key='pos_select')
|
470 |
+
elif sport_select == 'TENNIS':
|
471 |
+
pos_select = st.multiselect("Select your position(s)", ['All the same position', 'So', 'Yeah', 'Idk'], key='pos_select')
|
472 |
submitted = st.form_submit_button("Submit")
|
473 |
if submitted:
|
474 |
if pos_var == 'Specific':
|