diff --git a/api/endpoints/editsalamander.py b/api/endpoints/editsalamander.py index 2b0d8513151dcee53576438e62223f2fc871b806..92b73f412ee9a085ae0af294d513f9823b794690 100644 --- a/api/endpoints/editsalamander.py +++ b/api/endpoints/editsalamander.py @@ -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)