diff --git a/app/main/routes.py b/app/main/routes.py index 91351b54..340681b2 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -259,8 +259,9 @@ def test(): os.unlink(file.file_path) deleted += 1 file.file_path = '' + db.session.commit() + - db.session.commit() return str(deleted) + ' done'