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

new bug for new salamander id

parent 11592532
Branches
No related tags found
1 merge request!50Resolve "refactor edit salamander"
......@@ -211,7 +211,7 @@ def delete_growth_row(salamander_id, image_id):
db.session.commit()
def handle_remaining_images(salamander, salamander_path: str, image_id: int, last_id: int, match_bool, result, new_id):
def handle_remaining_images(salamander, salamander_path: str, image_id: int, last_id: int, match_bool, result, new_id=0):
# if last image was moved:
if len(os.listdir(salamander_path)) == 0:
os.rmdir(salamander_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment