From 28eb04c6d5c108e8ef2e40b595a95df2b1efd43a Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 3 Sep 2014 13:19:20 +0200 Subject: [PATCH] fix: do not keep reference to the first page to parse transactions --- modules/ing/browser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ing/browser.py b/modules/ing/browser.py index a7a00c7b..5b399ed7 100644 --- a/modules/ing/browser.py +++ b/modules/ing/browser.py @@ -130,12 +130,12 @@ class IngBrowser(LoginBrowser): return if account.type == Account.TYPE_CHECKING: - history_function = self.page.get_transactions_cc + history_function = AccountsList.get_transactions_cc else: - history_function = self.page.get_transactions_others + history_function = AccountsList.get_transactions_others hashlist = [] while True: - for transaction in history_function(): + for transaction in history_function(self.page): transaction.id = hashlib.md5(transaction._hash).hexdigest() while transaction.id in hashlist: transaction.id = hashlib.md5(transaction.id + "1").hexdigest()