From 7808b84ed601905d4a48e898ea5f99566729bc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=A3=9E?= Date: Fri, 20 Sep 2024 13:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=8B=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8Drequest=5Fkwargs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/db_diagnostic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/db_diagnostic.py b/sql/db_diagnostic.py index 6f755c086f..c12ab2c296 100644 --- a/sql/db_diagnostic.py +++ b/sql/db_diagnostic.py @@ -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" } @@ -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: