mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 03:38:11 +08:00
chore: upgrade backend dependencies (#2641)
chore: upgrade backend dependencies (#2641)
This commit is contained in:
@@ -6,7 +6,7 @@ CXGUID = "cxguid"
|
||||
|
||||
|
||||
def get_user_id(session: SessionMixin) -> str:
|
||||
""" Gets a session-persistent user id. Creates one in the Flask session if non-extant """
|
||||
"""Gets a session-persistent user id. Creates one in the Flask session if non-extant"""
|
||||
if CXGUID not in session:
|
||||
session[CXGUID] = uuid4().hex
|
||||
session.permanent = True
|
||||
|
||||
Reference in New Issue
Block a user