added a *.replace() to fix a bug line 86

This commit is contained in:
sputnick 2012-05-30 20:53:42 +02:00 committed by Romain Bignon
commit a609c372e1

View file

@ -78,7 +78,7 @@ class AccountsList(BasePage):
account.balance = Decimal(cpt.xpath("./td[3]/text()")[0].replace(',', '.').replace("EUR", "").replace("\n", "").replace("\t", "").replace(u"\xa0", ""))
# account coming
mycomingval = cpt.xpath("./td[4]/text()")[0].replace(',', '.').replace("EUR", "").replace("\n", "").replace("\t", "")
mycomingval = cpt.xpath("./td[4]/text()")[0].replace(',', '.').replace("EUR", "").replace("\n", "").replace("\t", "").replace(u"\xa0", "")
if mycomingval == '-':
account.coming = Decimal(0)