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

small bug in edit salamander fix

parent 7c725a2a
No related branches found
No related tags found
1 merge request!50Resolve "refactor edit salamander"
...@@ -188,10 +188,9 @@ class EditSalamander(Resource): ...@@ -188,10 +188,9 @@ class EditSalamander(Resource):
return jsonify({"message": "Image id, " + data[ return jsonify({"message": "Image id, " + data[
'image_id'] + " does not exist in salamander_id, " + data['id'], 'status': 400}) 'image_id'] + " does not exist in salamander_id, " + data['id'], 'status': 400})
else: else:
return jsonify( return jsonify({"message": "salamander data updated", 'status': 200})
{"message": "salamander cannot be moved to the same location", 'status': 400})
else: else:
return jsonify({"message": "salamander updated", 'status': 200}) return jsonify({"message": "wrong data", 'status': 400})
else: else:
return jsonify({"message": "Salamander ID" + data['id'] + " does not exist", 'status': 400}) return jsonify({"message": "Salamander ID" + data['id'] + " does not exist", 'status': 400})
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment