add all of dict_nicely to the export for immoweb to allow using any of the available listing data
This commit is contained in:
parent
18b0e39495
commit
20ab7fde95
1 changed files with 5 additions and 1 deletions
|
|
@ -21,9 +21,13 @@ async def export_immoweb(ctx, output_file: str):
|
||||||
'city': 'London', # change me
|
'city': 'London', # change me
|
||||||
'country': 'United Kingdom',
|
'country': 'United Kingdom',
|
||||||
'qm': await listing.sqm_ocr(),
|
'qm': await listing.sqm_ocr(),
|
||||||
'qmprice': await listing.price_per_sqm(),
|
'qmprice': round(await listing.price_per_sqm(), 2),
|
||||||
'rooms': listing.bedrooms,
|
'rooms': listing.bedrooms,
|
||||||
'total_price': listing.price,
|
'total_price': listing.price,
|
||||||
|
'url': listing.url,
|
||||||
|
# Additional info; the above is GeoJSON format
|
||||||
|
# Below is all other crap we want in the UI
|
||||||
|
'info': await listing.dict_nicely(),
|
||||||
},
|
},
|
||||||
'geometry': {
|
'geometry': {
|
||||||
'coordinates': [
|
'coordinates': [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue