Resolve "refactor edit salamander"
Compare changes
+ 21
− 21
@@ -138,15 +138,14 @@ class EditSalamander(Resource):
@@ -138,15 +138,14 @@ class EditSalamander(Resource):
@@ -163,7 +162,6 @@ class EditSalamander(Resource):
@@ -163,7 +162,6 @@ class EditSalamander(Resource):
@@ -172,32 +170,34 @@ class EditSalamander(Resource):
@@ -172,32 +170,34 @@ class EditSalamander(Resource):
@@ -212,7 +212,7 @@ def delete_growth_row(salamander_id, image_id):
@@ -212,7 +212,7 @@ def delete_growth_row(salamander_id, image_id):
def handle_remaining_images(salamander, salamander_path: str, image_id: int, last_id: int, match_bool, result):
@@ -222,7 +222,7 @@ def handle_remaining_images(salamander, salamander_path: str, image_id: int, las
@@ -222,7 +222,7 @@ def handle_remaining_images(salamander, salamander_path: str, image_id: int, las
return jsonify({"id": result, "matching": "Match!", "message": "Matched with salamander", 'status': 200})
{"id": salamander.id, "matching": "No match.", "message": "New salamander in database", 'status': 200})
@@ -240,7 +240,7 @@ def handle_remaining_images(salamander, salamander_path: str, image_id: int, las
@@ -240,7 +240,7 @@ def handle_remaining_images(salamander, salamander_path: str, image_id: int, las
return jsonify({"id": result, "matching": "Match!", "message": "Matched with salamander", 'status': 200})
{"id": salamander.id, "matching": "No match.", "message": "New salamander in database", 'status': 200})