From 34005d63ca17bfedea01f5144ef219844e432c72 Mon Sep 17 00:00:00 2001 From: herman dyrkorn <herman.dyrkorn@gmail.com> Date: Thu, 10 Jun 2021 14:10:13 +0200 Subject: [PATCH] new bug for new salamander id --- api/endpoints/editsalamander.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/endpoints/editsalamander.py b/api/endpoints/editsalamander.py index 2b0d851..92b73f4 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) -- GitLab