Fix volume categories for acre-feet conversions

This commit is contained in:
Codex
2026-03-07 20:06:42 +00:00
parent f292df5ac8
commit 45a06c7ad6
2 changed files with 31 additions and 29 deletions

View File

@@ -55,6 +55,8 @@ def split_conversion_name(name):
def guess_category(name):
name_l = name.lower()
if any(x in name_l for x in ['acre-foot', 'acre-feet', 'acrefoot', 'acre feet']):
return 'volume'
if 'temp scale' in name_l or 'newton (temp' in name_l:
return 'temperature'
if any(x in name_l for x in ['force', 'torque', 'newton', 'dyne', 'foot-pound']): return 'force'