Jon Solow
commited on
Commit
·
902260e
1
Parent(s):
f4383ba
Use pos_str as display with key arg for uniqueness
Browse files
src/pages/10_Set_Your_Lineup.py
CHANGED
@@ -92,10 +92,11 @@ def position_cell(week: str, pos_str: str, options_list: list[PlayerOption], exi
|
|
92 |
options = options_list
|
93 |
|
94 |
selected_player_from_box = st.selectbox(
|
95 |
-
|
96 |
options=options,
|
97 |
format_func=format_player_option,
|
98 |
index=selected_option_idx,
|
|
|
99 |
)
|
100 |
if selected_player_from_box and int(week) == CURRENT_PLAYOFF_WEEK:
|
101 |
if selected_player_from_box.gsis_id and selected_player_from_box.gsis_id != selected_id:
|
|
|
92 |
options = options_list
|
93 |
|
94 |
selected_player_from_box = st.selectbox(
|
95 |
+
pos_str,
|
96 |
options=options,
|
97 |
format_func=format_player_option,
|
98 |
index=selected_option_idx,
|
99 |
+
key=pos_label,
|
100 |
)
|
101 |
if selected_player_from_box and int(week) == CURRENT_PLAYOFF_WEEK:
|
102 |
if selected_player_from_box.gsis_id and selected_player_from_box.gsis_id != selected_id:
|