diff --git a/backend/apps/db/es_engine.py b/backend/apps/db/es_engine.py index 1353665d..75e7980b 100644 --- a/backend/apps/db/es_engine.py +++ b/backend/apps/db/es_engine.py @@ -91,7 +91,7 @@ def get_es_fields(conf: DatasourceConf, table_name: str): def get_es_data_by_http(conf: DatasourceConf, sql: str): url = conf.host while url.endswith('/'): - url = sql[:-1] + url = url[:-1] host = f'{url}/_sql?format=json' username = f"{conf.username}"