[seloger] fix obj filling
This commit is contained in:
parent
532356a55f
commit
725adb1ed4
2 changed files with 2 additions and 2 deletions
|
|
@ -78,4 +78,4 @@ class SeLogerBrowser(PagesBrowser):
|
|||
return self.search.go(request=urllib.urlencode(data)).iter_housings()
|
||||
|
||||
def get_housing(self, _id, obj=None):
|
||||
return self.housing.go(_id=_id, noAudiotel=1).get_housing(obj)
|
||||
return self.housing.go(_id=_id, noAudiotel=1).get_housing(obj=obj)
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class SeLogerModule(Module, CapHousing):
|
|||
|
||||
def fill_housing(self, housing, fields):
|
||||
if fields != ['photos'] or not housing.photos:
|
||||
housing = self.browser.get_housing(housing.id)
|
||||
housing = self.browser.get_housing(housing.id, housing)
|
||||
if 'photos' in fields:
|
||||
for photo in housing.photos:
|
||||
if not photo.data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue