Skip to content

Commit 598ba76

Browse files
committed
fix
1 parent e7fdcad commit 598ba76

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/open_cups/session_state.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import uuid
2-
31
import streamlit as st
42

53

@@ -12,9 +10,7 @@ class SessionState:
1210

1311
def __init__(self) -> None:
1412
if "session_id" not in st.session_state:
15-
st.session_state.session_id = st.context.cookies.get(
16-
"ajs_anonymous_id",
17-
) or str(uuid.uuid4())
13+
st.session_state.session_id = st.context.cookies["ajs_anonymous_id"]
1814

1915
@property
2016
def session_id(self) -> str:

0 commit comments

Comments
 (0)