From 11985ec1c42ce252d263d96eef8811dbf1c15aae Mon Sep 17 00:00:00 2001 From: agessaman Date: Mon, 16 Feb 2026 16:30:44 -0800 Subject: [PATCH] Update db_path return type in BotIntegration class to string - Changed the return type of the `db_path` method in the `BotIntegration` class from a Path object to a string, ensuring consistent data type handling for database paths. --- modules/web_viewer/integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/web_viewer/integration.py b/modules/web_viewer/integration.py index 49dc63a..4964c18 100644 --- a/modules/web_viewer/integration.py +++ b/modules/web_viewer/integration.py @@ -88,7 +88,7 @@ class BotIntegration: raw = self.bot.config.get('Web_Viewer', 'db_path', fallback='').strip() if raw: return resolve_path(raw, base_dir) - return Path(self.bot.db_manager.db_path).resolve() + return str(Path(self.bot.db_manager.db_path).resolve()) def _init_packet_stream_table(self): """Initialize the packet_stream table in the web viewer database (same as [Bot] db_path by default)."""