[Fixed] Units when using the grammar
This commit is contained in:
parent
33c1e0a7e8
commit
46739c8ea0
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue