introduce new type Account.TYPE_LIKE_INSURANCE
This commit is contained in:
parent
55f8bbcf2e
commit
2f61835521
6 changed files with 8 additions and 6 deletions
|
|
@ -144,7 +144,7 @@ class Boursorama(Browser):
|
|||
link = self.page.get_next_url()
|
||||
|
||||
def get_investment(self, account):
|
||||
if account.type != Account.TYPE_MARKET or not account._detail_url:
|
||||
if account.type != Account.TYPE_LIFE_INSURANCE or not account._detail_url:
|
||||
raise NotImplementedError()
|
||||
self.location(account._detail_url)
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class AccountsList(Page):
|
|||
account._link_id = None
|
||||
if 'assurance vie' in block_title:
|
||||
# Life insurance accounts are investments
|
||||
account.type = Account.TYPE_MARKET
|
||||
account.type = Account.TYPE_LIFE_INSURANCE
|
||||
for td in tr.getiterator('td'):
|
||||
if td.get('class', '') == 'account-cb':
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue