add photo thumbnail to dict_nicely to allow visualizing in the ui
This commit is contained in:
parent
c7a2b23967
commit
18b0e39495
1 changed files with 10 additions and 0 deletions
|
|
@ -310,6 +310,14 @@ class Listing:
|
||||||
return self.detailobject['property']["councilTaxInfo"]["content"][0][
|
return self.detailobject['property']["councilTaxInfo"]["content"][0][
|
||||||
"value"]
|
"value"]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def photoThumbnail(self) -> str | None:
|
||||||
|
# options are: 'url', 'thumbnailUrl', 'maxSizeUrl'
|
||||||
|
photos = self.detailobject['property']['photos']
|
||||||
|
if len(photos) > 0:
|
||||||
|
return photos[0]['url']
|
||||||
|
return None
|
||||||
|
|
||||||
async def dict_nicely(self):
|
async def dict_nicely(self):
|
||||||
travel_time_fastest = {}
|
travel_time_fastest = {}
|
||||||
travel_time_second = {}
|
travel_time_second = {}
|
||||||
|
|
@ -366,6 +374,8 @@ class Listing:
|
||||||
self.agency,
|
self.agency,
|
||||||
"council_tax_band":
|
"council_tax_band":
|
||||||
self.councilTaxBand,
|
self.councilTaxBand,
|
||||||
|
"photo_thumbnail":
|
||||||
|
self.photoThumbnail,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __routing_cache_key(
|
def __routing_cache_key(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue