fix errors

master
Aevann 2023-04-02 18:59:21 +02:00
parent 8083042617
commit 1e2c740a08
1 changed files with 2 additions and 4 deletions

View File

@ -56,12 +56,10 @@ r = redis.Redis.from_url(app.config["CACHE_REDIS_URL"])
@app.after_request
def after_request(response:Response):
if g.v:
user_id = g.v.id
else:
user_id = None
user_id = None
if response.status_code < 400:
if g.v: user_id = g.v.id
_commit_and_close_db()
if request.method == "POST" and not request.path.startswith('/casino/twentyone/'):