James McCool
commited on
Commit
Β·
b21657e
1
Parent(s):
b60f2be
ping
Browse files
app.py
CHANGED
|
@@ -1796,13 +1796,11 @@ if selected_tab == 'Projections Management':
|
|
| 1796 |
'captain ownership': st.session_state['map_dict'].get('cpt_own_map', {}).get(player, 0.0)
|
| 1797 |
})
|
| 1798 |
|
| 1799 |
-
# Add missing players to the editor dataframe
|
| 1800 |
missing_df = pd.DataFrame(missing_rows)
|
| 1801 |
projections_editor_df = pd.concat([projections_editor_df, missing_df], ignore_index=True)
|
| 1802 |
|
| 1803 |
st.info(f"π Found {len(missing_players)} player(s) in portfolio not in projections. They have been added below with values of 0 for median, ownership, and captain ownership.")
|
| 1804 |
|
| 1805 |
-
# Define column configuration for the data editor
|
| 1806 |
column_config = {
|
| 1807 |
'player_names': st.column_config.TextColumn(
|
| 1808 |
'Player',
|
|
@@ -1847,7 +1845,6 @@ if selected_tab == 'Projections Management':
|
|
| 1847 |
)
|
| 1848 |
}
|
| 1849 |
|
| 1850 |
-
# Search/filter functionality
|
| 1851 |
search_col, team_filter_col, position_filter_col = st.columns([2, 1, 1])
|
| 1852 |
with search_col:
|
| 1853 |
player_search = st.text_input("π Search players", placeholder="Type player name...", key='proj_player_search')
|
|
|
|
| 1796 |
'captain ownership': st.session_state['map_dict'].get('cpt_own_map', {}).get(player, 0.0)
|
| 1797 |
})
|
| 1798 |
|
|
|
|
| 1799 |
missing_df = pd.DataFrame(missing_rows)
|
| 1800 |
projections_editor_df = pd.concat([projections_editor_df, missing_df], ignore_index=True)
|
| 1801 |
|
| 1802 |
st.info(f"π Found {len(missing_players)} player(s) in portfolio not in projections. They have been added below with values of 0 for median, ownership, and captain ownership.")
|
| 1803 |
|
|
|
|
| 1804 |
column_config = {
|
| 1805 |
'player_names': st.column_config.TextColumn(
|
| 1806 |
'Player',
|
|
|
|
| 1845 |
)
|
| 1846 |
}
|
| 1847 |
|
|
|
|
| 1848 |
search_col, team_filter_col, position_filter_col = st.columns([2, 1, 1])
|
| 1849 |
with search_col:
|
| 1850 |
player_search = st.text_input("π Search players", placeholder="Type player name...", key='proj_player_search')
|