feat(py-monitor): add normalize_condition()

This commit is contained in:
hoelee committed 2026-10-09 18:01:00 +08:00
1 parent 60db5f9436
commit 2756d5e82a
1 file changed
+5
@@ -26,3 +26,8 @@ def parse_price(s):
return None
def normalize_condition(value):
"""Map a category-specific condition label onto the canonical set."""
if not value:
return None
return CONDITION_MAP.get(str(value).strip().lower())