diff --git a/backend/apps/db/db.py b/backend/apps/db/db.py index f6c1b181..a23294ff 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -158,7 +158,8 @@ def check_connection(trans: Trans, ds: CoreDatasource, is_raise: bool = False): def get_version(ds: CoreDatasource | AssistantOutDsSchema): conf = None if isinstance(ds, CoreDatasource): - conf = DatasourceConf(**json.loads(aes_decrypt(ds.configuration))) if ds.type != "excel" else get_engine_config() + conf = DatasourceConf( + **json.loads(aes_decrypt(ds.configuration))) if ds.type != "excel" else get_engine_config() if isinstance(ds, AssistantOutDsSchema): conf = DatasourceConf() conf.host = ds.host