[Fixed] Units when using the grammar

This commit is contained in:
Salvador E. Tropea 2023-03-31 10:45:05 -03:00
parent 33c1e0a7e8
commit 46739c8ea0
1 changed files with 1 additions and 1 deletions

View File

@ -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