feat(py-monitor): add normalize_condition()

This commit is contained in:
hoelee committed 2026-01-23 09:00:00 +08:00
1 parent 0bea5057cc
commit 2eb3704ca5
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())