This commit is contained in:
Aevann1 2022-02-04 16:58:41 +02:00
parent 33b48e6ec1
commit 4de36a4838
2 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ def notifications(v):
@limiter.limit("3/second;30/minute;400/hour;2000/day")
@auth_desired
def front_all(v, hole=None):
if hole not in holes: hole = None
if hole and hole not in holes: hole = None
if g.webview and not session.get("session_id"):
session.permanent = True
session["session_id"] = secrets.token_hex(49)