From c2876f26db1729cd9dd4c26a3f0ab8964a66137e Mon Sep 17 00:00:00 2001 From: xueanguo Date: Thu, 28 Dec 2023 13:47:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5get=5Fengine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/slowlog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/slowlog.py b/sql/slowlog.py index d87f31597d..ae51f7ed7d 100644 --- a/sql/slowlog.py +++ b/sql/slowlog.py @@ -11,6 +11,7 @@ from pyecharts.charts import Line from pyecharts import options as opts from common.utils.chart_dao import ChartDao +from sql.engines import get_engine from sql.utils.resource_group import user_instances from common.utils.extend_json_encoder import ExtendJSONEncoder @@ -44,7 +45,7 @@ def slowquery_review(request): # 调用阿里云慢日志接口 query_engine = get_engine(instance=instance_info) result = query_engine.slowquery_review( - self, start_time, end_time, db_name, limit, offset + start_time, end_time, db_name, limit, offset ) else: limit = offset + limit