From e1e4213c75d38cbf3821cee15ee3e7c473f4fb0a Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 2 Sep 2014 16:54:08 +0200 Subject: [PATCH] remove spaces in IDs --- modules/banquepopulaire/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/banquepopulaire/pages.py b/modules/banquepopulaire/pages.py index 416a0fa7..f283fff7 100644 --- a/modules/banquepopulaire/pages.py +++ b/modules/banquepopulaire/pages.py @@ -280,7 +280,7 @@ class AccountsPage(BasePage): continue account = Account() - account.id = args['identifiant'] + account.id = args['identifiant'].replace(' ', '') account.label = u' '.join([u''.join([txt.strip() for txt in tds[1].itertext()]), u''.join([txt.strip() for txt in tds[2].itertext()])]).strip() account.type = account_type @@ -328,7 +328,7 @@ class CardsPage(BasePage): if account is not None: yield account account = Account() - account.id = id + account.id = id.replace(' ', '') account.balance = account.coming = Decimal('0') account._next_debit = datetime.date.today() account._prev_debit = datetime.date(2000,1,1)