James McCool
commited on
Commit
·
6562841
1
Parent(s):
3160bd1
Add position parsing options for player stats based on selected type
Browse files
app.py
CHANGED
|
@@ -3305,8 +3305,17 @@ if selected_tab == 'Manage Portfolio':
|
|
| 3305 |
)
|
| 3306 |
player_stats_col, stack_stats_col, combos_col = st.tabs(['Player Stats', 'Stack Stats', 'Combos'])
|
| 3307 |
with player_stats_col:
|
| 3308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3309 |
if st.button("Analyze Players", key='analyze_players'):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3310 |
else:
|
| 3311 |
if type_var == 'Showdown':
|
| 3312 |
if sport_var == 'GOLF':
|
|
|
|
| 3305 |
)
|
| 3306 |
player_stats_col, stack_stats_col, combos_col = st.tabs(['Player Stats', 'Stack Stats', 'Combos'])
|
| 3307 |
with player_stats_col:
|
| 3308 |
+
if type_var == 'Showdown':
|
| 3309 |
+
position_parse_options = ['All', *showdown_position_lists]
|
| 3310 |
+
else:
|
| 3311 |
+
position_parse_options = ['All', *sport_position_lists[site_var][sport_var]]
|
| 3312 |
+
position_parse = st.selectbox("Parse by:", options=position_parse_options, index=0, key='position_parse')
|
| 3313 |
+
|
| 3314 |
if st.button("Analyze Players", key='analyze_players'):
|
| 3315 |
+
player_stats = []
|
| 3316 |
+
|
| 3317 |
+
if st.session_state['settings_base'] and 'origin_player_exposures' in st.session_state and display_frame_source == 'Portfolio':
|
| 3318 |
+
st.session_state['player_summary'] = st.session_state['origin_player_exposures']
|
| 3319 |
else:
|
| 3320 |
if type_var == 'Showdown':
|
| 3321 |
if sport_var == 'GOLF':
|