boursorama: ignore spurious accounts
account.id must be a string.
This commit is contained in:
parent
ee59891f62
commit
30a0f916bf
1 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ class AccountsList(BasePage):
|
||||||
if div.attrib.get('id', '') == 'synthese-list':
|
if div.attrib.get('id', '') == 'synthese-list':
|
||||||
for tr in div.getiterator('tr'):
|
for tr in div.getiterator('tr'):
|
||||||
account = Account()
|
account = Account()
|
||||||
|
account.id = None
|
||||||
for td in tr.getiterator('td'):
|
for td in tr.getiterator('td'):
|
||||||
if td.attrib.get('class', '') == 'account-cb':
|
if td.attrib.get('class', '') == 'account-cb':
|
||||||
break
|
break
|
||||||
|
|
@ -63,7 +64,7 @@ class AccountsList(BasePage):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# because of some weird useless <tr>
|
# because of some weird useless <tr>
|
||||||
if account.id != 0:
|
if account.id is not None:
|
||||||
l.append(account)
|
l.append(account)
|
||||||
|
|
||||||
return l
|
return l
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue