Commit 921afc8f authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

small bug in edit salamander fix

parent 7c725a2a
...@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment