chore: upgrade backend dependencies (#2641)

chore: upgrade backend dependencies (#2641)
This commit is contained in:
atarashansky
2023-11-29 14:16:39 -08:00
committed by GitHub
parent 4bb9a2b834
commit 6505f6cbf5
36 changed files with 161 additions and 315 deletions
+3 -3
View File
@@ -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):
+1 -1
View File
@@ -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