Update my_model/utilities/state_manager.py
Browse files
my_model/utilities/state_manager.py
CHANGED
@@ -67,7 +67,12 @@ class StateManager:
|
|
67 |
# Function to check if any session state values have changed
|
68 |
def has_state_changed(self):
|
69 |
for key in st.session_state['previous_state']:
|
|
|
|
|
70 |
if st.session_state[key] != st.session_state['previous_state'][key]:
|
|
|
|
|
|
|
71 |
return True # Found a change
|
72 |
else: return False # No changes found
|
73 |
|
|
|
67 |
# Function to check if any session state values have changed
|
68 |
def has_state_changed(self):
|
69 |
for key in st.session_state['previous_state']:
|
70 |
+
st.write(st.session_state[key])
|
71 |
+
st.write(st.session_state['previous_state'][key])
|
72 |
if st.session_state[key] != st.session_state['previous_state'][key]:
|
73 |
+
st.text("found a change")
|
74 |
+
st.write(st.session_state[key])
|
75 |
+
st.write(st.session_state['previous_state'][key])
|
76 |
return True # Found a change
|
77 |
else: return False # No changes found
|
78 |
|