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