Commit 57d2a4ee authored by Florian Duguet's avatar Florian Duguet Committed by Vincent A

[impotsgouvfrpar] change xpath for document.label to avoid duplicate text in label

parent f586f546
......@@ -176,7 +176,7 @@ class DocumentsPage(LoggedPage, HTMLPage):
obj_url = Format('/enp/ensu/Affichage_Document_PDF?idEnsua=%s', Field('_idEnsua'))
def parse(self, el):
label_ct = CleanText('./div[has-class("texte")]')
label_ct = CleanText('./div[has-class("texte")][has-class("visible-xs")]')
date = Regexp(label_ct, r'le ([\w\/]+?),', default=NotAvailable)(self)
self.env['label'] = label_ct(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment