From b7f12dacda0d42a4dab07e68a5322f675acd421f Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Feb 2023 04:03:09 +0200 Subject: [PATCH] fix again --- files/routes/allroutes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index a9e968e28..12fa1015a 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -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