fixing duplicate entry on card account

This commit is contained in:
Vincent Paredes 2014-10-17 15:39:25 +02:00 committed by Romain Bignon
commit 07d544f259

View file

@ -21,6 +21,7 @@
from weboob.deprecated.browser import Browser, BrowserIncorrectPassword
from weboob.capabilities.bank import Account
from .pages import LoginPage, AccountsList, AccountHistory, CardHistory, UpdateInfoPage, AuthenticationPage
@ -119,6 +120,11 @@ class Boursorama(Browser):
def get_history(self, account):
link = account._link_id
#We need to skip the first link on card page because there is a summary,
#and so the recent transaction are displayed twice
if account.type == Account.TYPE_CARD:
self.location(link)
link = self.page.get_next_url()
while link is not None:
self.location(link)