Remove "votre solde" in history / strip labels
This commit is contained in:
parent
ca018c7cb1
commit
1756e8939b
1 changed files with 3 additions and 1 deletions
|
|
@ -108,7 +108,9 @@ class Leclercmobile(BaseBrowser):
|
||||||
if mimetype == "application/pdf":
|
if mimetype == "application/pdf":
|
||||||
pdf = PdfPage(StringIO.StringIO(response.read()))
|
pdf = PdfPage(StringIO.StringIO(response.read()))
|
||||||
for call in pdf.get_calls():
|
for call in pdf.get_calls():
|
||||||
yield call
|
call.label = call.label.strip()
|
||||||
|
if call.label != "Votre solde":
|
||||||
|
yield call
|
||||||
|
|
||||||
def get_details(self):
|
def get_details(self):
|
||||||
if not self.is_on_page(HistoryPage):
|
if not self.is_on_page(HistoryPage):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue