Spaces:
Runtime error
Runtime error
fix loading to allow further changes
Browse files
app.py
CHANGED
@@ -100,7 +100,8 @@ def main():
|
|
100 |
for k, v in saved.items():
|
101 |
save_dict_to_save_state(v, prefix + [k])
|
102 |
else:
|
103 |
-
st.session_state.save_state
|
|
|
104 |
# TODO: don't overwrite by default
|
105 |
st.session_state.card_dict = pre_card_dict
|
106 |
save_dict_to_save_state(st.session_state.card_dict)
|
|
|
100 |
for k, v in saved.items():
|
101 |
save_dict_to_save_state(v, prefix + [k])
|
102 |
else:
|
103 |
+
if not st.session_state.save_state.get("_".join(prefix) + "_filled", False):
|
104 |
+
st.session_state.save_state["_".join(prefix)] = saved
|
105 |
# TODO: don't overwrite by default
|
106 |
st.session_state.card_dict = pre_card_dict
|
107 |
save_dict_to_save_state(st.session_state.card_dict)
|