diff --git a/modules/boursorama/pages/account_history.py b/modules/boursorama/pages/account_history.py index 57323094..b679cc47 100644 --- a/modules/boursorama/pages/account_history.py +++ b/modules/boursorama/pages/account_history.py @@ -47,7 +47,7 @@ class AccountHistory(BasePage): def get_operations(self): for form in self.document.xpath('//form[@name="marques"]'): for tr in form.xpath('.//tbody/tr'): - if tr.attrib.get('class', '') == 'total' or 'style' in tr.attrib: + if 'total' in tr.attrib.get('class', '') or 'style' in tr.attrib: continue date = self.parser.tocleanstring(tr.cssselect('td.operation span.DateOperation')[0]) diff --git a/modules/boursorama/pages/card_history.py b/modules/boursorama/pages/card_history.py index a4d99656..323cb37e 100644 --- a/modules/boursorama/pages/card_history.py +++ b/modules/boursorama/pages/card_history.py @@ -42,7 +42,7 @@ class CardHistory(BasePage): for tr in form.xpath('.//tbody/tr'): tds = tr.xpath('./td') - if tr.attrib.get('class', '') in ('total', 'visible-phone') or 'style' in tr.attrib or len(tds) < 3: + if tr.attrib.get('class', '') in ('total gras', 'visible-phone') or 'style' in tr.attrib or len(tds) < 3: continue date = self.parser.tocleanstring(tds[0])