Commit 8642772c authored by Christophe Francois's avatar Christophe Francois Committed by Vincent A

[axabanque] Fix iter_accounts condition

The condition was in ListElement instead of ItemElement and some
accounts were filtered out by mistake.
parent 976c68dd
......@@ -49,13 +49,13 @@ class AccountsPage(LoggedPage, HTMLPage):
class iter_accounts(ListElement):
item_xpath = '//div[contains(@data-module-open-link--link, "/savings/")]'
def condition(self):
# Filter out closed accounts
return CleanDecimal.French('.//p[has-class("amount-card")]', default=None)(self) is not None
class item(ItemElement):
klass = Account
def condition(self):
# Filter out closed accounts
return CleanDecimal.French('.//p[has-class("amount-card")]', default=None)(self) is not None
TYPES = {
'assurance vie': Account.TYPE_LIFE_INSURANCE,
'perp': Account.TYPE_PERP,
......
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