Commit 1d394032 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditdunord] Skip iban return for cards

The website seems to create fake iban with the id card (but not
reachable with website navigation).
parent 7a3e3622
......@@ -118,8 +118,9 @@ class CreditDuNordBrowser(LoginBrowser):
link = self.page.iban_go()
for a in [a for a in accounts if a._acc_nb]:
self.location(link + a._acc_nb)
a.iban = self.page.get_iban()
if a.type != Account.TYPE_CARD:
self.location(link + a._acc_nb)
a.iban = self.page.get_iban()
return accounts
......
......@@ -180,7 +180,7 @@ class LabelsPage(LoggedPage, JsonPage):
if CleanText(Dict('label'))(element) in synthesis_labels:
synthesis_label = CleanText(Dict('link'))(element).split("/")[-1]
if CleanText(Dict('label'))(element) in loan_labels:
loan_label = CleanText(Dict('link'))(element).split("/")[-1]
loan_label = CleanText(Dict('link'))(element).split("/")[-1]
return (synthesis_label, loan_label)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment