James McCool
commited on
Commit
·
7157836
1
Parent(s):
37c59a0
Add working_frame initialization in app.py: create a copy of the portfolio in session state to ensure consistent data handling across operations, enhancing clarity and maintainability.
Browse files
app.py
CHANGED
@@ -782,6 +782,7 @@ with tab2:
|
|
782 |
strength_var = st.selectbox("Select field strength", ['Average', 'Sharp', 'Weak'])
|
783 |
|
784 |
if 'working_frame' not in st.session_state:
|
|
|
785 |
if site_var == 'Draftkings':
|
786 |
if type_var == 'Classic':
|
787 |
if sport_var == 'CS2':
|
|
|
782 |
strength_var = st.selectbox("Select field strength", ['Average', 'Sharp', 'Weak'])
|
783 |
|
784 |
if 'working_frame' not in st.session_state:
|
785 |
+
st.session_state['working_frame'] = st.session_state['portfolio'].copy()
|
786 |
if site_var == 'Draftkings':
|
787 |
if type_var == 'Classic':
|
788 |
if sport_var == 'CS2':
|