Skip to content

Commit

Permalink
Corrects aggregation query not clause
Browse files Browse the repository at this point in the history
Fixes #29

Signed-off-by: Andrew Collins <ancollin@redhat.com>
  • Loading branch information
afcollins committed Dec 18, 2024
1 parent 3229459 commit cf3615b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fmatch/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ def get_agg_metric_query(
metric_queries = []
not_queries = [
~Q("match", **{not_item_key: not_item_value})
for not_item in metrics.get("not", [])
for not_item_key, not_item_value in not_item.items()
for not_item_key, not_item_value in metrics.get("not", {}).items()
]
metric_queries = [
Q("match", **{metric_key: metric_value})
Expand Down

0 comments on commit cf3615b

Please sign in to comment.