correctly set type of market accounts

This commit is contained in:
Romain Bignon 2015-05-29 16:30:24 +02:00 committed by Romain Bignon
commit d791df83e3

View file

@ -232,6 +232,8 @@ class AccountsList(Page):
ACCOUNT_TYPES = {'mes-comptes/compte-courant': Account.TYPE_CHECKING, ACCOUNT_TYPES = {'mes-comptes/compte-courant': Account.TYPE_CHECKING,
'mes-comptes/assurance-vie': Account.TYPE_LIFE_INSURANCE, 'mes-comptes/assurance-vie': Account.TYPE_LIFE_INSURANCE,
'mes-comptes/livret': Account.TYPE_LOAN, 'mes-comptes/livret': Account.TYPE_LOAN,
'mes-comptes/pea': Account.TYPE_MARKET,
'mes-comptes/compte-titres': Account.TYPE_MARKET,
} }
def get_list(self): def get_list(self):
for cpt in self.document.xpath(".//*[@class='synthese_id_compte']"): for cpt in self.document.xpath(".//*[@class='synthese_id_compte']"):