[logicimmo] fix bug on details retrievement
This commit is contained in:
parent
0359bb4a3d
commit
bf9dd2e6c9
1 changed files with 5 additions and 2 deletions
|
|
@ -81,8 +81,11 @@ class HousingPage(HTMLPage):
|
||||||
splitted_a = a.split(':')
|
splitted_a = a.split(':')
|
||||||
dpe = Regexp(CleanText('//div[@id="energy-pyramid"]/img/@src'),
|
dpe = Regexp(CleanText('//div[@id="energy-pyramid"]/img/@src'),
|
||||||
'http://mmf.logic-immo.com/mmf/fr/static/dpe/dpe_(\w)_b.gif',
|
'http://mmf.logic-immo.com/mmf/fr/static/dpe/dpe_(\w)_b.gif',
|
||||||
'(\\1)', default="")(self)
|
default="")(self)
|
||||||
details[splitted_a[0]] = '%s %s' % (splitted_a[1], dpe)
|
if len(splitted_a) > 1:
|
||||||
|
details[splitted_a[0]] = '%s (%s)' % (splitted_a[1], dpe)
|
||||||
|
elif dpe:
|
||||||
|
details[splitted_a[0]] = '%s'
|
||||||
return details
|
return details
|
||||||
|
|
||||||
def get_phone_url_datas(self):
|
def get_phone_url_datas(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue