Skip to content
Snippets Groups Projects
Commit 2d2bf294 authored by Eirik Martin Danielsen's avatar Eirik Martin Danielsen :speech_balloon:
Browse files

renamed deleted to status

parent 26bce954
No related branches found
No related tags found
1 merge request!38Resolve "remove dead code and cleanup"
......@@ -58,7 +58,7 @@ class LocationEndpoint(Resource):
if location:
db.session.delete(location)
db.session.commit()
return jsonify({"location": str(location.id), "deleted": 200})
return jsonify({"location": str(location.id) + " deleted.", "status": 200})
else:
return jsonify({"message": "location doesn't exist", "status": 400})
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment