From 07d544f2591233a45321d4d36a913aa82ce34065 Mon Sep 17 00:00:00 2001 From: Vincent Paredes Date: Fri, 17 Oct 2014 15:39:25 +0200 Subject: [PATCH] fixing duplicate entry on card account --- modules/boursorama/browser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/boursorama/browser.py b/modules/boursorama/browser.py index 456f355f..72e462a1 100644 --- a/modules/boursorama/browser.py +++ b/modules/boursorama/browser.py @@ -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)