From 1919903e8a685ba27d552692992747f9fde3fd20 Mon Sep 17 00:00:00 2001 From: F-cq <42882578+F-cq@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:28:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(biz/access=5Flog/log=5Fsearch)=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E6=9F=A5=E8=AF=A2=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20(#1054)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apigateway/apigateway/biz/access_log/log_search.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py b/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py index 9c5533146..20a52eb39 100644 --- a/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py +++ b/src/dashboard/apigateway/apigateway/biz/access_log/log_search.py @@ -108,10 +108,12 @@ def _build_base_search(self, order: Optional[bool] = None) -> Search: s = s.filter("term", request_id=self._request_id) if self._include_conditions: - s = s.filter("term", **self._include_conditions) + for key, val in self._include_conditions.items(): + s = s.filter("term", **{key: val}) if self._exclude_conditions: - s = s.exclude("term", **self._exclude_conditions) + for key, val in self._exclude_conditions.items(): + s = s.exclude("term", **{key: val}) # time range if self._smart_time_range: