From 8f823f794098df6e8e108783af4cb51e43e2ac2c Mon Sep 17 00:00:00 2001 From: Mateusz Krajewski Date: Tue, 3 Feb 2026 16:33:25 +0100 Subject: [PATCH] Web_Viewer: fix loading of db_path from config --- modules/web_viewer/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web_viewer/app.py b/modules/web_viewer/app.py index 41e98ba..194190a 100644 --- a/modules/web_viewer/app.py +++ b/modules/web_viewer/app.py @@ -57,7 +57,6 @@ class BotDataViewer: async_mode='threading' # Use threading for better stability ) - self.db_path = db_path self.repeater_db_path = repeater_db_path # Connection management using Flask-SocketIO built-ins @@ -74,6 +73,8 @@ class BotDataViewer: # Load configuration self.config = self._load_config(config_path) + self.db_path = self.config.get('Web_Viewer', 'db_path', fallback=db_path) + # Setup template context processor for global template variables self._setup_template_context()