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

new bug fix at ssame problem

parent 613cbc38
Branches
No related tags found
1 merge request!50Resolve "refactor edit salamander"
......@@ -171,12 +171,13 @@ class EditSalamander(Resource):
path_to_original_image=original_path,
path_to_processed_image=processed_path)
else:
add_salamander(salamander.id, image_id, data['new_location'],
data['new_species'],
data['new_sex'], new_path_to_images, user_id, original_path,
processed_path)
new_id = add_salamander(salamander.id, image_id, data['new_location'],
data['new_species'],
data['new_sex'], new_path_to_images, user_id,
original_path,
processed_path)
return handle_remaining_images(salamander, salamander_path, image_id, last_id,
True, result, 0)
True, result, new_id)
else:
return jsonify(
{"message": "Salamander image, " + data['image_id'] + " does not exist",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment