Skip to content
Snippets Groups Projects
Commit 5111bf3a authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

database and location return longitude and latitude

parent c4489aef
No related branches found
No related tags found
1 merge request!24Resolve "delete salamander"
No preview for this file type
......@@ -36,7 +36,7 @@ class LocationEndpoint(Resource):
locations = db.session.query(Location).all()
location_list = []
for location in locations:
loc = {"id": location.id, "radius": location.radius, "name": location.name, "coordinates": location.coordinates}
loc = {"id": location.id, "radius": location.radius, "name": location.name, "latitude": location.latitude, "longitude": location.longitude}
location_list.append(loc)
return jsonify(location_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment