From 7118faeb638476b5c494b1ac68b35b4d6bae28eb Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Tue, 25 Jun 2019 13:29:40 +0200 Subject: [PATCH] [cragr/regions] Complete card labels Some card labels were half empty because the xpath slightly changes. --- modules/cragr/regions/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cragr/regions/pages.py b/modules/cragr/regions/pages.py index 3f172f9719..add592b931 100644 --- a/modules/cragr/regions/pages.py +++ b/modules/cragr/regions/pages.py @@ -477,8 +477,8 @@ def condition(self): # Card label is formatted as 'Carte VISA Premier - Mr M Lastname' obj_label = Format( '%s - %s', - CleanText('.//caption/span[@class="tdb-cartes-carte"]'), - CleanText('.//caption/span[@class="tdb-cartes-prop"]') + CleanText('.//caption/span[has-class("tdb-cartes-carte")]'), + CleanText('.//caption/span[has-class("tdb-cartes-prop")]') ) obj_type = Account.TYPE_CARD -- GitLab