We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fdcad commit 598ba76Copy full SHA for 598ba76
src/open_cups/session_state.py
@@ -1,5 +1,3 @@
1
-import uuid
2
-
3
import streamlit as st
4
5
@@ -12,9 +10,7 @@ class SessionState:
12
10
13
11
def __init__(self) -> None:
14
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())
+ st.session_state.session_id = st.context.cookies["ajs_anonymous_id"]
18
19
@property
20
def session_id(self) -> str:
0 commit comments