Skip to content

Commit

Permalink
修改一下参数名request_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
feiazifeiazi committed Sep 20, 2024
1 parent 38a39dd commit 7808b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/db_diagnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def process(request):
instance_name = request.POST.get("instance_name")
command_type = request.POST.get("command_type")
request_post_kwargs = {
request_kwargs = {
key: value for key, value in request.POST.items() if key != "command_type"
}

Expand All @@ -36,7 +36,7 @@ def process(request):
query_result = None
# processlist方法已提升为父类方法,简化此处的逻辑。进程添加新数据库支持时,改前端即可。
query_result = query_engine.processlist(
command_type=command_type, **request_post_kwargs
command_type=command_type, **request_kwargs
)
if query_result:
if not query_result.error:
Expand Down

0 comments on commit 7808b84

Please sign in to comment.