same as last commit

master
Aevann 2023-04-02 19:00:27 +02:00
parent 891cac98e0
commit 27510af932
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ def after_request(response:Response):
user_id = None user_id = None
if response.status_code < 400: if response.status_code < 400:
if g.v: user_id = g.v.id if hasattr(g, 'v') and g.v:
user_id = g.v.id
_commit_and_close_db() _commit_and_close_db()
if request.method == "POST" and not request.path.startswith('/casino/twentyone/'): if request.method == "POST" and not request.path.startswith('/casino/twentyone/'):