mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 22:18:12 +08:00
chore: upgrade backend dependencies (#2641)
chore: upgrade backend dependencies (#2641)
This commit is contained in:
+3
-3
@@ -48,12 +48,12 @@ def _cache_control(always, **cache_kwargs):
|
||||
|
||||
|
||||
def cache_control(**cache_kwargs):
|
||||
""" config driven """
|
||||
"""config driven"""
|
||||
return _cache_control(False, **cache_kwargs)
|
||||
|
||||
|
||||
def cache_control_always(**cache_kwargs):
|
||||
""" always generate headers, regardless of the config """
|
||||
"""always generate headers, regardless of the config"""
|
||||
return _cache_control(True, **cache_kwargs)
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ def get_api_dataroot_resources(bp_dataroot):
|
||||
class Server:
|
||||
@staticmethod
|
||||
def _before_adding_routes(app, app_config):
|
||||
""" will be called before routes are added, during __init__. Subclass protocol """
|
||||
"""will be called before routes are added, during __init__. Subclass protocol"""
|
||||
pass
|
||||
|
||||
def __init__(self, app_config):
|
||||
|
||||
@@ -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