James McCool
commited on
Commit
·
4d615ec
1
Parent(s):
db3a8e8
okay last try here
Browse files
app.py
CHANGED
|
@@ -159,6 +159,9 @@ sport_position_lists = {
|
|
| 159 |
'SOC': ['F', 'M', 'D', 'GK'],
|
| 160 |
},
|
| 161 |
}
|
|
|
|
|
|
|
|
|
|
| 162 |
player_wrong_names_mlb = ['Enrique Hernandez', 'Joseph Cantillo', 'Mike Soroka', 'Jakob Bauers', 'Temi Fágbénlé']
|
| 163 |
player_right_names_mlb = ['Kike Hernandez', 'Joey Cantillo', 'Michael Soroka', 'Jake Bauers', 'Temi Fagbenle']
|
| 164 |
|
|
@@ -3304,7 +3307,11 @@ if selected_tab == 'Manage Portfolio':
|
|
| 3304 |
with player_stats_col:
|
| 3305 |
position_parse_col, analyze_button_col = st.tabs(['Position Parse', 'Analyze Players'])
|
| 3306 |
with position_parse_col:
|
| 3307 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3308 |
with analyze_button_col:
|
| 3309 |
if st.button("Analyze Players", key='analyze_players'):
|
| 3310 |
player_stats = []
|
|
|
|
| 159 |
'SOC': ['F', 'M', 'D', 'GK'],
|
| 160 |
},
|
| 161 |
}
|
| 162 |
+
|
| 163 |
+
showdown_position_lists = ['CPT', 'FLEX']
|
| 164 |
+
|
| 165 |
player_wrong_names_mlb = ['Enrique Hernandez', 'Joseph Cantillo', 'Mike Soroka', 'Jakob Bauers', 'Temi Fágbénlé']
|
| 166 |
player_right_names_mlb = ['Kike Hernandez', 'Joey Cantillo', 'Michael Soroka', 'Jake Bauers', 'Temi Fagbenle']
|
| 167 |
|
|
|
|
| 3307 |
with player_stats_col:
|
| 3308 |
position_parse_col, analyze_button_col = st.tabs(['Position Parse', 'Analyze Players'])
|
| 3309 |
with position_parse_col:
|
| 3310 |
+
if type_var == 'Showdown':
|
| 3311 |
+
position_parse_options = ['All', *showdown_position_lists]
|
| 3312 |
+
else:
|
| 3313 |
+
position_parse_options = ['All', *sport_position_lists[site_var][sport_var]]
|
| 3314 |
+
position_parse = st.selectbox("Parse by:", options=position_parse_options, index=0, key='position_parse')
|
| 3315 |
with analyze_button_col:
|
| 3316 |
if st.button("Analyze Players", key='analyze_players'):
|
| 3317 |
player_stats = []
|