Commit fe861aa6 authored by Romain Bignon's avatar Romain Bignon Committed by Romain Bignon

lcl: fix parsing of number when coming from bforbank

parent e447b303
Pipeline #1598 failed with stages
in 62 minutes and 13 seconds
......@@ -564,8 +564,11 @@ class BoursePage(LoggedPage, HTMLPage):
return Currency.get_currency(CleanText(TableCell('titres'))(self))
def obj_number(self):
tmp_number = CleanText((TableCell('label')(self)[0]).xpath('./div[not(b)]'))(self).replace(' - ', '')
return'(\d{11,})[A-Z]', tmp_number).group(0)
number = CleanText((TableCell('label')(self)[0]).xpath('./div[not(b)]'))(self).replace(' - ', '')
m ='(\d{11,})[A-Z]', number)
if m:
number =
return number
def obj_id(self):
return "%sbourse" % Field('number')(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