fixing duplicate entry

This commit is contained in:
Vincent Paredes 2015-06-15 17:02:17 +02:00 committed by Romain Bignon
commit ea80b25092

View file

@ -98,6 +98,9 @@ class HistoryPage(CMSOPage):
obj_raw = Transaction.Raw('./following-sibling::tr[1][starts-with(@id, "libelleLong")]/td[3]')
obj_amount = Transaction.Amount('./td[5]', './td[4]')
def condition(self):
return len(self.el) >= 5 and not self.el.get('id', '').startswith('libelleLong') and len(self.el.xpath('.//i')) > 0
@pagination
@method
class iter_history_rest_page(CmsoListElement):