From 5fa16ee66d5380599a4566dce73eaa7ca5a33417 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 16 Mar 2015 14:58:11 +0100 Subject: [PATCH] remove spaces from IDs --- modules/creditdunord/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/creditdunord/pages.py b/modules/creditdunord/pages.py index 219ea52d..78a620b1 100644 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -172,7 +172,7 @@ class ProAccountsPage(AccountsPage): cols = tr.findall('td') a = Account() - a.id = cols[self.COL_ID].xpath('.//span[@class="right-underline"]')[0].text.strip() + a.id = cols[self.COL_ID].xpath('.//span[@class="right-underline"]')[0].text.replace(' ', '').strip() a.label = unicode(cols[self.COL_ID].xpath('.//span[@class="left-underline"]')[0].text.strip()) a.type = self.get_account_type(a.label) balance = self.parser.tocleanstring(cols[self.COL_BALANCE])