From b042f006889fa5fb95e12ec5ad319efd48009c94 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Fri, 13 Sep 2024 18:16:27 +0800 Subject: [PATCH] fix: command search input error --- apps/common/plugins/es.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/common/plugins/es.py b/apps/common/plugins/es.py index c4b2d0921..df53d3f46 100644 --- a/apps/common/plugins/es.py +++ b/apps/common/plugins/es.py @@ -409,8 +409,13 @@ class QuerySet(DJQuerySet): if not filter_calls: return {} names, multi_args, multi_kwargs = zip(*filter_calls) + args = { + key: value + for arg in multi_args if arg + for key, value in arg[0].children + } kwargs = reduce(lambda x, y: {**x, **y}, multi_kwargs, {}) - + kwargs.update(args) striped_kwargs = {} for k, v in kwargs.items(): k = k.replace('__exact', '')