Commit
•
af07826
1
Parent(s):
9147f5f
Update app.py
Browse files
app.py
CHANGED
@@ -497,8 +497,8 @@ class Application:
|
|
497 |
# Sync parameters with session state
|
498 |
if all(x in st.session_state for x in ["category", "name", "year"]):
|
499 |
# Copy session year if category and name are unchanged
|
500 |
-
params["year"] = str(st.session_state["year"]) if all(params
|
501 |
-
|
502 |
# Copy category and name from session state
|
503 |
params["category"] = st.session_state["category"]
|
504 |
params["name"] = st.session_state["name"]
|
|
|
497 |
# Sync parameters with session state
|
498 |
if all(x in st.session_state for x in ["category", "name", "year"]):
|
499 |
# Copy session year if category and name are unchanged
|
500 |
+
params["year"] = str(st.session_state["year"]) if all(params.get(x) == st.session_state[x] for x in ["category", "name"]) else None
|
501 |
+
|
502 |
# Copy category and name from session state
|
503 |
params["category"] = st.session_state["category"]
|
504 |
params["name"] = st.session_state["name"]
|