From 2fc2d8bff06079c751045969cf376fdb26e2c2a9 Mon Sep 17 00:00:00 2001 From: Grace Xin Date: Wed, 20 Sep 2023 13:32:44 -0400 Subject: [PATCH] jk wrong fix --- albumy/blueprints/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/albumy/blueprints/main.py b/albumy/blueprints/main.py index 7737d18..e526d50 100644 --- a/albumy/blueprints/main.py +++ b/albumy/blueprints/main.py @@ -342,6 +342,7 @@ def delete_photo(photo_id): abort(403) db.session.delete(photo) + db.session.commit() flash('Photo deleted.', 'info') photo_n = Photo.query.with_parent(photo.author).filter(Photo.id < photo_id).order_by(Photo.id.desc()).first()