From 46739c8ea05e4d53a073a697436bdd1812274d4a Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 31 Mar 2023 10:45:05 -0300 Subject: [PATCH] [Fixed] Units when using the grammar --- kibot/bom/units.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/bom/units.py b/kibot/bom/units.py index c0e18456..98cd454b 100644 --- a/kibot/bom/units.py +++ b/kibot/bom/units.py @@ -155,7 +155,7 @@ def value_from_grammar(r): return None # Create an object with the result val, pow = get_prefix(float(val), PREFIXES[int(log10(r['mult']))]) - parsed = ParsedValue(val, pow, get_unit(GRAM_TYPES[r['type']], ''), r) + parsed = ParsedValue(val, pow, get_unit(None, GRAM_TYPES[r['type']]), r) return parsed