James McCool
commited on
Commit
·
c0dc70e
1
Parent(s):
5f3ed32
Trying to fix player name designation with portfolio rather than players rpojections
Browse files
app.py
CHANGED
|
@@ -2489,7 +2489,7 @@ if selected_tab == 'Manage Portfolio':
|
|
| 2489 |
|
| 2490 |
with st.expander('Exposure Management'):
|
| 2491 |
with st.form(key='Exposures'):
|
| 2492 |
-
exposure_player = st.selectbox("Player", options=sorted(list(set(st.session_state['
|
| 2493 |
exposure_target = st.number_input("Target Exposure", value=.50, min_value=0.0, max_value=1.0, step=0.01)
|
| 2494 |
comp_salary_below = st.number_input("Comp Salary Below", value=-5000, min_value=-5000, max_value=0, step=100)
|
| 2495 |
comp_salary_above = st.number_input("Comp Salary Above", value=5000, min_value=0, max_value=5000, step=100)
|
|
@@ -2498,7 +2498,7 @@ if selected_tab == 'Manage Portfolio':
|
|
| 2498 |
else:
|
| 2499 |
ignore_stacks = []
|
| 2500 |
remove_teams_exposure = st.multiselect("Removed/Locked teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
|
| 2501 |
-
specific_replacements = st.multiselect("Specific Replacements?", options=sorted(list(set(st.session_state['
|
| 2502 |
specific_columns = st.multiselect("Specific Positions?", options=sorted(list(st.session_state['player_columns'])), default=[])
|
| 2503 |
submitted_col, export_col = st.columns(2)
|
| 2504 |
st.info("Portfolio Button applies to your overall Portfolio, Export button applies to your Custom Export")
|
|
|
|
| 2489 |
|
| 2490 |
with st.expander('Exposure Management'):
|
| 2491 |
with st.form(key='Exposures'):
|
| 2492 |
+
exposure_player = st.selectbox("Player", options=sorted(list(set(get_portfolio_names(st.session_state['working_frame']).unique()))), key='exposure_player')
|
| 2493 |
exposure_target = st.number_input("Target Exposure", value=.50, min_value=0.0, max_value=1.0, step=0.01)
|
| 2494 |
comp_salary_below = st.number_input("Comp Salary Below", value=-5000, min_value=-5000, max_value=0, step=100)
|
| 2495 |
comp_salary_above = st.number_input("Comp Salary Above", value=5000, min_value=0, max_value=5000, step=100)
|
|
|
|
| 2498 |
else:
|
| 2499 |
ignore_stacks = []
|
| 2500 |
remove_teams_exposure = st.multiselect("Removed/Locked teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
|
| 2501 |
+
specific_replacements = st.multiselect("Specific Replacements?", options=sorted(list(set(get_portfolio_names(st.session_state['working_frame']).unique()))), default=[])
|
| 2502 |
specific_columns = st.multiselect("Specific Positions?", options=sorted(list(st.session_state['player_columns'])), default=[])
|
| 2503 |
submitted_col, export_col = st.columns(2)
|
| 2504 |
st.info("Portfolio Button applies to your overall Portfolio, Export button applies to your Custom Export")
|