Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复慢查日志报错:"未知错误,请联系管理员处理" #2471

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading