From 18c7655db6d097bbdbfeac67a588dfc63789e625 Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Mon, 17 Aug 2015 16:57:42 +0200 Subject: [PATCH] smc handle duplicate accounts --- 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 5cad4840..07c43cf4 100644 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -176,13 +176,13 @@ class ProAccountsPage(AccountsPage): cols = tr.findall('td') a = Account() - 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]) a.balance = Decimal(FrenchTransaction.clean_amount(balance)) a.currency = a.get_currency(balance) a._link, a._args = self.params_from_js(cols[self.COL_ID].find('a').attrib['href']) + a.id = '%s%s' % (cols[self.COL_ID].xpath('.//span[@class="right-underline"]')[0].text.replace(' ', '').strip(), a._args['IndiceCompte']) a._card_ids = []