From 1febe4877310ec94499749a64449ee848b091a43 Mon Sep 17 00:00:00 2001 From: Mimi Chuang Date: Wed, 20 Sep 2023 13:34:22 -0400 Subject: [PATCH] fixed deleting bug --- albumy/blueprints/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/albumy/blueprints/main.py b/albumy/blueprints/main.py index 7737d18..de81187 100644 --- a/albumy/blueprints/main.py +++ b/albumy/blueprints/main.py @@ -361,6 +361,7 @@ def delete_comment(comment_id): and not current_user.can('MODERATE'): abort(403) db.session.delete(comment) + db.session.commit() flash('Comment deleted.', 'info') return redirect(url_for('.show_photo', photo_id=comment.photo_id))