From 20353b306363ae055d5ffc90d9547533e21fe427 Mon Sep 17 00:00:00 2001 From: Guillaume Risbourg Date: Wed, 18 Sep 2019 10:15:39 +0200 Subject: [PATCH] [lcl] Changed BoursePage `col_especes` detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed `col_especes` in BoursePage to handle any future words change/addition while keeping the `Solde espèces` base. --- modules/lcl/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index c3b6bfacaa..3a604e5bbb 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -649,9 +649,9 @@ class get_list(TableElement): item_xpath = '//table[has-class("tableau_comptes_details")]//tr[td and not(parent::tfoot)]' head_xpath = '//table[has-class("tableau_comptes_details")]/thead/tr/th' - col_label = u'Comptes' + col_label = 'Comptes' col_titres = re.compile('Valorisation') - col_especes = ['Solde espèces', 'Solde espèces veille'] + col_especes = re.compile('Solde espèces') class item(ItemElement): klass = Account -- GitLab