never convert a float to Decimal
This commit is contained in:
parent
20835e5180
commit
22c2210fe7
4 changed files with 4 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ class AccountsList(BasePage):
|
|||
balance = balance.replace(u'\xa0','').replace(',','.')
|
||||
account.balance = Decimal(balance)
|
||||
else:
|
||||
account.balance = Decimal(0.0)
|
||||
account.balance = Decimal(0)
|
||||
|
||||
l.append(account)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue