From b50ad152567008b080a9228ebdad7cbe5dfa1513 Mon Sep 17 00:00:00 2001 From: Fong NGO Date: Fri, 30 Mar 2018 12:21:16 +0200 Subject: [PATCH] [boursorama] fix retrieval of deferred card transactions Transaction histories are made available via a CSV file. Previously, only the "accountlabel" column was looked at to decide if it was af card transaction and some card transactions were not fetched. But it turns out we can actually use another column of the CSV file ("label" column) to detect card transactions. --- modules/boursorama/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index 0037f1c11a..198ff89499 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -434,7 +434,7 @@ def obj_category(self): def validate(self, obj): if "Relevé" in obj.raw: return Env('account_number')(self) in obj.raw - return "CARTE" in obj._account_label and Env('account_number')(self) in Dict('accountNum')(self) + return ("CARTE" in obj.raw or "CARTE" in obj._account_label) and Env('account_number')(self) in Dict('accountNum')(self) class Myiter_investment(TableElement): -- GitLab