From a609c372e165c5fdc880fab47576e72664c63cdb Mon Sep 17 00:00:00 2001 From: sputnick Date: Wed, 30 May 2012 20:53:42 +0200 Subject: [PATCH] added a *.replace() to fix a bug line 86 --- modules/fortuneo/pages/accounts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fortuneo/pages/accounts_list.py b/modules/fortuneo/pages/accounts_list.py index 333d3bc4..36f711ad 100644 --- a/modules/fortuneo/pages/accounts_list.py +++ b/modules/fortuneo/pages/accounts_list.py @@ -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)