Skip to content

Commit

Permalink
fix(biz/access_log/log_search):修复日志查询语法报错问题 (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
F-cq authored Oct 23, 2024
1 parent c0375f3 commit 1919903
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1919903

Please sign in to comment.