atlasbot: require numeric metric facts
This commit is contained in:
parent
f7123a08b8
commit
c09cfc09b5
@ -2349,7 +2349,7 @@ def _reply_matches_metric_facts(reply: str, metric_facts: list[str], tokens: lis
|
|||||||
for match in value_pattern.findall(line):
|
for match in value_pattern.findall(line):
|
||||||
fact_numbers.add(match)
|
fact_numbers.add(match)
|
||||||
if not fact_numbers:
|
if not fact_numbers:
|
||||||
return True
|
return False
|
||||||
return bool(reply_numbers & fact_numbers)
|
return bool(reply_numbers & fact_numbers)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user