mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-07 03:50:42 +00:00
refactor: Refactor datasource module (#1309)
This commit is contained in:
@@ -38,7 +38,7 @@ class ChatDashboard(BaseChat):
|
||||
self.db_name = self.db_name
|
||||
self.report_name = chat_param.get("report_name", "report")
|
||||
|
||||
self.database = CFG.LOCAL_DB_MANAGE.get_connect(self.db_name)
|
||||
self.database = CFG.local_db_manager.get_connector(self.db_name)
|
||||
|
||||
self.top_k: int = 5
|
||||
self.dashboard_template = self.__load_dashboard_template(self.report_name)
|
||||
|
Reference in New Issue
Block a user