merge dump listings and dump details commands - fetch both details and listings in the same command

This commit is contained in:
Viktor Barzin 2025-06-07 12:00:23 +00:00
parent 29213f3d26
commit 842f7cefbe
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
7 changed files with 54 additions and 59 deletions

View file

@ -49,6 +49,6 @@ async def export_immoweb(
prefix = "var data = "
serialized_data = {"type": "FeatureCollection", "features": immoweb_listings}
result = prefix + json.dumps(serialized_data, indent=4)
with open(output_file_path, "w") as f:
with open(str(output_file_path), "w") as f:
f.write(result)
# json.dump(serialized_data, f, indent=4)