Commit c654eec8 authored by Guillaume Risbourg's avatar Guillaume Risbourg Committed by Vincent A

[bnporc] Removed unused transaction property

`obj__redacted_card` is not used anywhere.
The module `bnpentcards` use it but it has its own BNPEntreprise Browser
that gather `_redacted_card`.
parent 635461c5
......@@ -30,7 +30,7 @@ from weboob.browser.filters.html import TableCell, Attr
from weboob.browser.elements import DictElement, ItemElement, method, TableElement
from weboob.browser.filters.standard import (
CleanText, CleanDecimal, Date, Regexp, Format, Eval, BrowserURL, Field,
Async, Currency,
from import Transaction, Account, Investment
from weboob.capabilities.profile import Person
......@@ -200,15 +200,6 @@ class CardItemElement(ItemElement):
'numero_mvt': Field('_trid')(self),
def obj__redacted_card(self):
raw = Field('raw')(self)
if not raw.startswith('FACTURE CARTE') or ' SUIVANT RELEVE DU ' in raw:
page = Async('details').loaded_page(self)
return page.get_redacted_card()
class AccountHistoryPage(LoggedPage, JsonPage):
......@@ -334,9 +325,7 @@ class AccountHistoryPage(LoggedPage, JsonPage):
class TransactionPage(LoggedPage, JsonPage):
def get_redacted_card(self):
# warning: the account on which the transaction is returned depends on this data!
return self.doc['carteNum']
class MarketPage(LoggedPage, HTMLPage):
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