[explorimmo] fix bug when nb rooms is empty
This commit is contained in:
parent
a7684982f8
commit
2811340e19
1 changed files with 3 additions and 1 deletions
|
|
@ -135,7 +135,9 @@ class HousingPage2(JsonPage):
|
|||
details['fees'] = Dict('characteristics/fees')(self)
|
||||
details['bedrooms'] = Dict('characteristics/bedroomCount')(self)
|
||||
details['energy'] = Dict('characteristics/energyConsumptionCategory')(self)
|
||||
details['rooms'] = Dict('characteristics/roomCount')(self)[0]
|
||||
rooms = Dict('characteristics/roomCount')(self)
|
||||
if len(rooms):
|
||||
details['rooms'] = rooms[0]
|
||||
details['available'] = Dict('characteristics/available')(self)
|
||||
return details
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue