Commit b50ad152 authored by Fong NGO's avatar Fong NGO Committed by Romain Bignon

[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.
parent 977423d8
......@@ -434,7 +434,7 @@ class CardHistoryPage(LoggedPage, CsvPage):
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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment