Merge pull request #43 from Mateusz-Krajewski/fix_invalid_db_path

Web_Viewer: fix loading of db_path from config
This commit is contained in:
Adam Gessaman
2026-02-03 08:48:17 -08:00
committed by GitHub
+2 -1
View File
@@ -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()