[explorimmo] json format changed
This commit is contained in:
parent
75a704de04
commit
fa01fff348
1 changed files with 2 additions and 2 deletions
|
|
@ -119,11 +119,11 @@ class HousingPage2(JsonPage):
|
||||||
def obj_photos(self):
|
def obj_photos(self):
|
||||||
photos = []
|
photos = []
|
||||||
for img in Dict('characteristics/images')(self):
|
for img in Dict('characteristics/images')(self):
|
||||||
m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img)
|
m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img.get('xl'))
|
||||||
if m:
|
if m:
|
||||||
photos.append(HousingPhoto(m.group(1)))
|
photos.append(HousingPhoto(m.group(1)))
|
||||||
else:
|
else:
|
||||||
photos.append(HousingPhoto(img))
|
photos.append(HousingPhoto(img.get('xl')))
|
||||||
return photos
|
return photos
|
||||||
|
|
||||||
def obj_details(self):
|
def obj_details(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue