James McCool
commited on
Commit
·
d8e4061
1
Parent(s):
c7547fd
Refactor payout information retrieval in app.py
Browse files- Removed the try-except block for payout information retrieval, streamlining the data loading process.
- This change enhances clarity and ensures that payout information is always fetched, improving the reliability of the data loading functionality.
app.py
CHANGED
|
@@ -238,11 +238,8 @@ if selected_tab == 'Data Load':
|
|
| 238 |
if st.button('Load Contest Data', key='load_contest_data'):
|
| 239 |
st.session_state['player_info'], st.session_state['info_maps'] = grab_contest_player_info(db, sport_init, type_init, date_select, contest_name_var, contest_id_map)
|
| 240 |
st.session_state['Contest_file'] = grab_contest_data(sport_init, contest_name_var, contest_id_map, date_select, date_select2)
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
print(st.session_state['payout_info'].head(10))
|
| 244 |
-
except:
|
| 245 |
-
st.session_state['payout_info'] = None
|
| 246 |
else:
|
| 247 |
pass
|
| 248 |
with contest_upload:
|
|
|
|
| 238 |
if st.button('Load Contest Data', key='load_contest_data'):
|
| 239 |
st.session_state['player_info'], st.session_state['info_maps'] = grab_contest_player_info(db, sport_init, type_init, date_select, contest_name_var, contest_id_map)
|
| 240 |
st.session_state['Contest_file'] = grab_contest_data(sport_init, contest_name_var, contest_id_map, date_select, date_select2)
|
| 241 |
+
st.session_state['payout_info'] = grab_contest_payout_info(db, sport_init, type_init, date_select, contest_name_var, contest_id_map)
|
| 242 |
+
print(st.session_state['payout_info'].head(10))
|
|
|
|
|
|
|
|
|
|
| 243 |
else:
|
| 244 |
pass
|
| 245 |
with contest_upload:
|