mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-10 21:10:59 +00:00
chore: simplify config.yaml
This commit is contained in:
@@ -10,4 +10,5 @@ class SQLiteDatabaseManager(database.BaseDatabaseManager):
|
|||||||
"""SQLite 数据库管理类"""
|
"""SQLite 数据库管理类"""
|
||||||
|
|
||||||
async def initialize(self) -> None:
|
async def initialize(self) -> None:
|
||||||
self.engine = sqlalchemy_asyncio.create_async_engine(f"sqlite+aiosqlite:///{self.ap.instance_config.data['persistence']['sqlite']['path']}")
|
sqlite_path = 'data/langbot.db'
|
||||||
|
self.engine = sqlalchemy_asyncio.create_async_engine(f"sqlite+aiosqlite:///{sqlite_path}")
|
||||||
|
|||||||
Reference in New Issue
Block a user