James McCool
commited on
Commit
·
cf90438
1
Parent(s):
d8e4061
Add payout information retrieval in app.py
Browse files- Integrated the retrieval of contest payout information into the data loading process, ensuring that payout data is consistently available.
- Added a print statement to display the first 10 rows of the retrieved payout information, enhancing debugging capabilities and data visibility.
app.py
CHANGED
|
@@ -256,6 +256,8 @@ if selected_tab == 'Data Load':
|
|
| 256 |
st.session_state['Contest_file'] = pd.read_csv(st.session_state['Contest_upload'])
|
| 257 |
except:
|
| 258 |
st.warning('Please upload a Contest CSV')
|
|
|
|
|
|
|
| 259 |
else:
|
| 260 |
pass
|
| 261 |
|
|
|
|
| 256 |
st.session_state['Contest_file'] = pd.read_csv(st.session_state['Contest_upload'])
|
| 257 |
except:
|
| 258 |
st.warning('Please upload a Contest CSV')
|
| 259 |
+
st.session_state['payout_info'] = grab_contest_payout_info(db, sport_init, type_init, date_select, contest_name_var, contest_id_map)
|
| 260 |
+
print(st.session_state['payout_info'].head(10))
|
| 261 |
else:
|
| 262 |
pass
|
| 263 |
|