From 59b764d57525828671d4a1a202ffd4102eb50ed5 Mon Sep 17 00:00:00 2001 From: Dorian Roly Date: Tue, 10 Dec 2019 15:03:21 +0100 Subject: [PATCH] [boursorama] Fix card transactions It seems that the previous code was filtering transactions because the website was returning all transaction from all cards in one request, the website seems to returning only the good transactions per request, so i've removed what it seems to be depreciated code. --- modules/boursorama/pages.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index 7be2ae650f..df8729534c 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -643,16 +643,6 @@ def obj_type(self): def obj_category(self): return Dict('category')(self) - # The csv page shows every transactions of the card account AND the associated - # check account. Here we want only the card transactions. - # Also, if there is more than one card account, the csv page will show - # transactions of every card account (smart) ... So we need to check for - # account number. - def validate(self, obj): - if "Relevé" in obj.raw: - return Env('account_number')(self) in obj.raw - return ("CARTE" in obj.raw or "CARTE" in obj._account_label) and Env('account_number')(self) in Dict('accountNum')(self) - class Myiter_investment(TableElement): # We do not scrape the investments contained in the "Engagements en liquidation" table -- GitLab