fix
This commit is contained in:
parent
b1223c40c5
commit
84ca038bdc
@ -2,6 +2,8 @@ from decimal import Decimal
|
|||||||
|
|
||||||
|
|
||||||
def clean(d):
|
def clean(d):
|
||||||
|
if type(d) == int:
|
||||||
|
return d
|
||||||
if d == d.to_integral():
|
if d == d.to_integral():
|
||||||
return d.quantize(Decimal(1))
|
return d.quantize(Decimal(1))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user