From ea80b25092a0eedcb40487c0a1af4c9c70c81f74 Mon Sep 17 00:00:00 2001 From: Vincent Paredes Date: Mon, 15 Jun 2015 17:02:17 +0200 Subject: [PATCH] fixing duplicate entry --- modules/cmso/web/pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/cmso/web/pages.py b/modules/cmso/web/pages.py index 189e0b02..9d57aa92 100644 --- a/modules/cmso/web/pages.py +++ b/modules/cmso/web/pages.py @@ -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):