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.
This commit is contained in:
agessaman
2026-02-16 16:30:44 -08:00
parent c3a196e319
commit 11985ec1c4
+1 -1
View File
@@ -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)."""