Skip to content

Commit

Permalink
adding ignore of 'metric'
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 committed Jan 30, 2024
1 parent 3b64332 commit c231b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmatch/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def getResults(self, uuid: str, uuids: list, index_str: str, metrics: dict):
if isinstance(v1,str):
v1 = f'"{v1}"'
metric_string += f" AND NOT ({k1}: {v1})"
elif isinstance(v,str) and not k in ['metric_of_interest']:
elif isinstance(v,str) and not k in ['metric','metric_of_interest']:
if v != "*":
v = f'"{v}"'
metric_string += f" AND {k}: {v}"
Expand Down Expand Up @@ -258,7 +258,7 @@ def get_agg_metric_query(self, uuids, index, metrics):
if isinstance(v1,str):
v1 = f'"{v1}"'
metric_string += f" AND NOT ({k1}: {v1})"
elif isinstance(v,str) and not k in ['metric_of_interest']:
elif isinstance(v,str) and not k in ['metric', 'metric_of_interest']:
if v != "*":
v = f'"{v}"'
metric_string += f" AND {k}: {v}"
Expand Down

0 comments on commit c231b63

Please sign in to comment.