From a0b4c1919adff43f076a78ffb3065aa42e1988c9 Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Wed, 23 Jan 2019 18:43:17 +0100 Subject: [PATCH] [hsbc] Skip card in opposition In this case the history is not available. Closes: 16236@sibi --- modules/hsbc/pages/account_pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hsbc/pages/account_pages.py b/modules/hsbc/pages/account_pages.py index fd822841a4..03c04a5d4f 100644 --- a/modules/hsbc/pages/account_pages.py +++ b/modules/hsbc/pages/account_pages.py @@ -160,7 +160,7 @@ class item(ItemElement): klass = Account def condition(self): - return len(self.el.xpath('./td')) > 2 + return len(self.el.xpath('./td')) > 2 and "en opposition" not in CleanText('./td[1]')(self) # Some accounts have no in the first def obj_label(self): -- GitLab