[leboncoin] properly fill object
This commit is contained in:
parent
38bc6819df
commit
11e124c860
2 changed files with 3 additions and 3 deletions
|
|
@ -51,5 +51,5 @@ class LeboncoinBrowser(PagesBrowser):
|
|||
advert_type=advert_type,
|
||||
ret=ret).get_housing_list()
|
||||
|
||||
def get_housing(self, _id):
|
||||
return self.housing.go(_id=_id).get_housing()
|
||||
def get_housing(self, _id, obj=None):
|
||||
return self.housing.go(_id=_id).get_housing(obj=obj)
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class LeboncoinModule(Module, CapHousing):
|
|||
return self.browser.get_housing(_id)
|
||||
|
||||
def fill_housing(self, housing, fields):
|
||||
return self.browser.get_housing(housing.id)
|
||||
return self.browser.get_housing(housing.id, housing)
|
||||
|
||||
def fill_photo(self, photo, fields):
|
||||
if 'data' in fields and photo.url and not photo.data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue