James McCool
commited on
Commit
·
fc0fbd1
1
Parent(s):
4c7f0de
checking more
Browse files
app.py
CHANGED
|
@@ -563,20 +563,22 @@ if selected_tab == 'Data Load':
|
|
| 563 |
if upload_toggle == 'Paydirt DB':
|
| 564 |
if st.button("Load from Database after inserting site CSV"):
|
| 565 |
if site_var == 'Draftkings':
|
| 566 |
-
portfolio_file = init_DK_NFL_lineups(type_var, 'Main', 'proj', 50, dk_nfl_showdown_db_translation,
|
|
|
|
| 567 |
portfolio_file = portfolio_file.to_csv(index=False)
|
| 568 |
if 'portfolio' in st.session_state:
|
| 569 |
del st.session_state['portfolio']
|
| 570 |
if 'export_portfolio' in st.session_state:
|
| 571 |
del st.session_state['export_portfolio']
|
| 572 |
else:
|
| 573 |
-
portfolio_file = init_FD_NFL_lineups(type_var, 'Main', 'proj', 50, fd_nfl_showdown_db_translation,
|
|
|
|
| 574 |
portfolio_file = portfolio_file.to_csv(index=False)
|
| 575 |
if 'portfolio' in st.session_state:
|
| 576 |
del st.session_state['portfolio']
|
| 577 |
if 'export_portfolio' in st.session_state:
|
| 578 |
del st.session_state['export_portfolio']
|
| 579 |
-
st.
|
| 580 |
|
| 581 |
elif upload_toggle == 'SaberSim (Just IDs)' or upload_toggle == 'Draftkings/Fanduel (Names + IDs)':
|
| 582 |
portfolio_file = st.file_uploader("Upload Portfolio File (CSV or Excel)", type=['csv', 'xlsx', 'xls'])
|
|
|
|
| 563 |
if upload_toggle == 'Paydirt DB':
|
| 564 |
if st.button("Load from Database after inserting site CSV"):
|
| 565 |
if site_var == 'Draftkings':
|
| 566 |
+
portfolio_file = init_DK_NFL_lineups(type_var, 'Main', 'proj', 50, dk_nfl_showdown_db_translation, 1000, [])
|
| 567 |
+
portfolio_file = pd.Series(portfolio_file)
|
| 568 |
portfolio_file = portfolio_file.to_csv(index=False)
|
| 569 |
if 'portfolio' in st.session_state:
|
| 570 |
del st.session_state['portfolio']
|
| 571 |
if 'export_portfolio' in st.session_state:
|
| 572 |
del st.session_state['export_portfolio']
|
| 573 |
else:
|
| 574 |
+
portfolio_file = init_FD_NFL_lineups(type_var, 'Main', 'proj', 50, fd_nfl_showdown_db_translation, 1000, [])
|
| 575 |
+
portfolio_file = pd.Series(portfolio_file)
|
| 576 |
portfolio_file = portfolio_file.to_csv(index=False)
|
| 577 |
if 'portfolio' in st.session_state:
|
| 578 |
del st.session_state['portfolio']
|
| 579 |
if 'export_portfolio' in st.session_state:
|
| 580 |
del st.session_state['export_portfolio']
|
| 581 |
+
st.write(portfolio_file)
|
| 582 |
|
| 583 |
elif upload_toggle == 'SaberSim (Just IDs)' or upload_toggle == 'Draftkings/Fanduel (Names + IDs)':
|
| 584 |
portfolio_file = st.file_uploader("Upload Portfolio File (CSV or Excel)", type=['csv', 'xlsx', 'xls'])
|