reduce size of json by pulling interesting fields above instead of relying on the entire thing
This commit is contained in:
parent
296a4e7603
commit
073020c6d2
3 changed files with 139092 additions and 4 deletions
|
|
@ -33,9 +33,12 @@ async def export_immoweb(
|
|||
"last_seen": listing.last_seen.isoformat(),
|
||||
"price_history": [item.to_dict() for item in listing.price_history],
|
||||
"agency": listing.agency,
|
||||
# Additional info; the above is GeoJSON format
|
||||
# Below is all other crap we want in the UI
|
||||
"info": listing.additional_info,
|
||||
"available_from": listing.additional_info["property"].get(
|
||||
"letDateAvailable", None
|
||||
),
|
||||
# All other crap can be found in additional_info
|
||||
# Prefer pulling out fields here instead of exporting the entire additional_info
|
||||
# "info": listing.additional_info,
|
||||
},
|
||||
"geometry": {
|
||||
"coordinates": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue