Skip to content

Commit

Permalink
修复慢查日志报错:"未知错误,请联系管理员处理" (#2471)
Browse files Browse the repository at this point in the history
导入get_engine

Co-authored-by: xueanguo <[email protected]>
  • Loading branch information
xueanguo and xueanguo authored Dec 28, 2023
1 parent aa775ff commit 23a4db7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/slowlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 23a4db7

Please sign in to comment.