fixing bad int values on investment

This commit is contained in:
Vincent Paredes 2015-05-11 14:16:15 +02:00 committed by Romain Bignon
commit 96b5108e78

View file

@ -83,10 +83,10 @@ class PeaHistoryPage(Page):
yield inv
def parse_decimal(self, string):
value = self.parser.tocleanstring(string)
value = Transaction.clean_amount(self.parser.tocleanstring(string))
if value == '-':
return NotAvailable
return Decimal(Transaction.clean_amount(value))
return Decimal(value)
def get_operations(self, _id):
return iter([])