Spaces:
Sleeping
Sleeping
Update app_web.py
Browse files- app_web.py +4 -4
app_web.py
CHANGED
|
@@ -33,10 +33,10 @@ def cg_admin():
|
|
| 33 |
return orgs
|
| 34 |
|
| 35 |
# 1. Force a clean state wipe on first load of the browser session
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
# ββ Session initialisation βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 42 |
def init_session():
|
|
|
|
| 33 |
return orgs
|
| 34 |
|
| 35 |
# 1. Force a clean state wipe on first load of the browser session
|
| 36 |
+
if "orgs" in st.session_state:
|
| 37 |
+
st.session_state.clear() # Wipes out any residual states
|
| 38 |
+
st.session_state["orgs"] = cg_admin()
|
| 39 |
+
st.write(st.session_state.orgs)
|
| 40 |
|
| 41 |
# ββ Session initialisation βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 42 |
def init_session():
|