James McCool
commited on
Commit
·
a4d375f
1
Parent(s):
d5e058d
Adjust score cutoff values in app.py: lower the score_cutoff for name matching from 90 to 85 to improve matching flexibility, and update working_frame assignment in session state for clarity in portfolio reset functionality.
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ with tab1:
|
|
167 |
match = process.extractOne(
|
168 |
portfolio_name,
|
169 |
csv_names,
|
170 |
-
score_cutoff=
|
171 |
)
|
172 |
if match:
|
173 |
portfolio_match_dict[portfolio_name] = match[0]
|
@@ -194,7 +194,7 @@ with tab1:
|
|
194 |
match = process.extractOne(
|
195 |
projections_name,
|
196 |
csv_names,
|
197 |
-
score_cutoff=
|
198 |
)
|
199 |
if match:
|
200 |
projections_match_dict[projections_name] = match[0]
|
@@ -738,7 +738,8 @@ with tab2:
|
|
738 |
with col1:
|
739 |
site_var = st.selectbox("Select Site", ['Draftkings', 'Fanduel'])
|
740 |
if st.button('Reset Portfolio', key='reset_port'):
|
741 |
-
working_frame = st.session_state['origin_portfolio'].copy()
|
|
|
742 |
if st.button('Clear data', key='reset3'):
|
743 |
st.session_state.clear()
|
744 |
|
|
|
167 |
match = process.extractOne(
|
168 |
portfolio_name,
|
169 |
csv_names,
|
170 |
+
score_cutoff=85
|
171 |
)
|
172 |
if match:
|
173 |
portfolio_match_dict[portfolio_name] = match[0]
|
|
|
194 |
match = process.extractOne(
|
195 |
projections_name,
|
196 |
csv_names,
|
197 |
+
score_cutoff=85
|
198 |
)
|
199 |
if match:
|
200 |
projections_match_dict[projections_name] = match[0]
|
|
|
738 |
with col1:
|
739 |
site_var = st.selectbox("Select Site", ['Draftkings', 'Fanduel'])
|
740 |
if st.button('Reset Portfolio', key='reset_port'):
|
741 |
+
st.session_state['working_frame'] = st.session_state['origin_portfolio'].copy()
|
742 |
+
|
743 |
if st.button('Clear data', key='reset3'):
|
744 |
st.session_state.clear()
|
745 |
|