Fixes convertion to decimal of transactions amount

This commit is contained in:
Luís Murta 2022-11-22 21:59:24 +00:00
parent c41bfb4bdf
commit 647db5e86f
Signed by: satprog
GPG Key ID: 169EF1BBD7049F94

View File

@ -27,7 +27,7 @@ class Transaction:
self.description = " ".join(arg[1].split()) self.description = " ".join(arg[1].split())
self.bank = arg[2] self.bank = arg[2]
if type(arg[3]) is float: if type(arg[3]) is float:
self.value = arg[3] self.value = Decimal(str(arg[3]))
else: else:
self.value = Decimal(args[3]) self.value = Decimal(args[3])
self.category = arg[4] self.category = arg[4]