mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-06-04 06:41:21 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user