Skip to content

Commit 19318dc

Browse files
committed
Merge branch 'main' of https://github.com/dataease/SQLBot
2 parents 392e942 + 338b5b3 commit 19318dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/apps/db/db.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def check_connection(trans: Trans, ds: CoreDatasource, is_raise: bool = False):
158158
def get_version(ds: CoreDatasource | AssistantOutDsSchema):
159159
conf = None
160160
if isinstance(ds, CoreDatasource):
161-
conf = DatasourceConf(**json.loads(aes_decrypt(ds.configuration))) if ds.type != "excel" else get_engine_config()
161+
conf = DatasourceConf(
162+
**json.loads(aes_decrypt(ds.configuration))) if ds.type != "excel" else get_engine_config()
162163
if isinstance(ds, AssistantOutDsSchema):
163164
conf = DatasourceConf()
164165
conf.host = ds.host

0 commit comments

Comments
 (0)