fix again

master
Aevann 2023-02-26 04:03:09 +02:00
parent 0189a7b0ce
commit b7f12dacda
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def before_request():
g.nonce = secrets.token_urlsafe(31)
import redis
host = environ.get("REDIS_URL", "redis://localhost").split('://')[1]
host = environ.get("REDIS_URL", "redis://localhost").split('://')[1].split(':6379')[0]
r = redis.Redis(host=host, port=6379, db=0)
@app.after_request