James McCool
commited on
Commit
·
906a851
1
Parent(s):
7365d98
Update player information retrieval in app.py to use contest_date for accuracy
Browse files- Modified the call to grab_contest_player_info to accept contest_date instead of contest_name, aligning with recent changes for improved data accuracy.
- Ensured that player information is correctly retrieved based on the selected date, enhancing the reliability of contest data processing.
- Maintained existing functionality while refining the handling of player data during contest loading.
app.py
CHANGED
@@ -106,7 +106,7 @@ with tab1:
|
|
106 |
if 'Contest_file' not in st.session_state:
|
107 |
if st.button('Load Contest Data', key='load_contest_data'):
|
108 |
st.session_state['Contest_file'] = grab_contest_data(sport_select, contest_name_var, contest_id_map, date_select, date_select2)
|
109 |
-
st.session_state['player_info'], st.session_state['info_maps'] = grab_contest_player_info(db, sport_select, type_var,
|
110 |
else:
|
111 |
pass
|
112 |
with col2:
|
|
|
106 |
if 'Contest_file' not in st.session_state:
|
107 |
if st.button('Load Contest Data', key='load_contest_data'):
|
108 |
st.session_state['Contest_file'] = grab_contest_data(sport_select, contest_name_var, contest_id_map, date_select, date_select2)
|
109 |
+
st.session_state['player_info'], st.session_state['info_maps'] = grab_contest_player_info(db, sport_select, type_var, date_select)
|
110 |
else:
|
111 |
pass
|
112 |
with col2:
|