add all of dict_nicely to the export for immoweb to allow using any of the available listing data

This commit is contained in:
Viktor Barzin 2025-05-31 21:57:44 +00:00
parent 18b0e39495
commit 20ab7fde95
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -21,9 +21,13 @@ async def export_immoweb(ctx, output_file: str):
'city': 'London', # change me
'country': 'United Kingdom',
'qm': await listing.sqm_ocr(),
'qmprice': await listing.price_per_sqm(),
'qmprice': round(await listing.price_per_sqm(), 2),
'rooms': listing.bedrooms,
'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': {
'coordinates': [