diff --git a/scripts/upload_animal_shelters.py b/scripts/upload_animal_shelters.py index 8486b61..1345469 100644 --- a/scripts/upload_animal_shelters.py +++ b/scripts/upload_animal_shelters.py @@ -144,9 +144,9 @@ def get_overpass_result(area, data_file): r = requests.get(overpass_endpoint, params={'data': overpass_query}) if r.status_code == 200: rjson = r.json() - with open(data_file, 'w', encoding='utf-8') as f: - json.dump(rjson, f, ensure_ascii=False) result = osmtogeojson.process_osm_json(rjson) + with open(data_file, 'w', encoding='utf-8') as f: + json.dump(result, f, ensure_ascii=False) return result