From 16dfcab6ba19ebea0c03adb69745179ccc49fb28 Mon Sep 17 00:00:00 2001 From: Karl Date: Fri, 18 Jul 2025 09:01:13 +0100 Subject: [PATCH] read from config --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 16a0f13..8de40ab 100644 --- a/app.py +++ b/app.py @@ -33,7 +33,7 @@ else: app.config.from_object(DevelopmentConfig) # Check for Redis availability and configure cache -redis_url = app.config.get("REDIS_URL", "redis://localhost:6379/0") +redis_url = app.config["REDIS_URL"] cache_config = {"CACHE_TYPE": "redis", "CACHE_REDIS_URL": redis_url} try: # Use a short timeout to prevent hanging