atlasbot: clean hardware count formatting

This commit is contained in:
Brad Stein 2026-02-02 02:48:54 -03:00
parent f4b4d6afe8
commit d4262d66ad

View File

@ -559,7 +559,7 @@ class AnswerEngine:
count = _find_value(target, hw_line)
nodes = _find_value(target, hw_nodes_line or "")
if count:
if nodes:
if nodes and "(" not in count:
reply = f"From the latest snapshot: {target}={count} ({nodes})."
else:
reply = f"From the latest snapshot: {target}={count}."