James McCool
commited on
Commit
·
d918500
1
Parent(s):
cc4f407
Update exposure_player selection in app.py to use unique player names from projections_df, ensuring accurate data representation in exposure management.
Browse files
app.py
CHANGED
|
@@ -1330,7 +1330,7 @@ with tab2:
|
|
| 1330 |
st.session_state['export_merge'] = st.session_state['export_base'].copy()
|
| 1331 |
with st.expander('Exposure Management'):
|
| 1332 |
with st.form(key='Exposures'):
|
| 1333 |
-
exposure_player = st.selectbox("Player", options=sorted(list(player_names)), key='exposure_player')
|
| 1334 |
exposure_target = st.number_input("Target Exposure", value=.50, min_value=0.0, max_value=1.0, step=0.01)
|
| 1335 |
if 'Stack' in st.session_state['working_frame'].columns:
|
| 1336 |
exposure_stack_bool = st.selectbox("Maintain Stacks?", options=['Yes', 'No'], index=0)
|
|
|
|
| 1330 |
st.session_state['export_merge'] = st.session_state['export_base'].copy()
|
| 1331 |
with st.expander('Exposure Management'):
|
| 1332 |
with st.form(key='Exposures'):
|
| 1333 |
+
exposure_player = st.selectbox("Player", options=sorted(list(set(st.session_state['projections_df']['player_names'].unique()))), key='exposure_player')
|
| 1334 |
exposure_target = st.number_input("Target Exposure", value=.50, min_value=0.0, max_value=1.0, step=0.01)
|
| 1335 |
if 'Stack' in st.session_state['working_frame'].columns:
|
| 1336 |
exposure_stack_bool = st.selectbox("Maintain Stacks?", options=['Yes', 'No'], index=0)
|