From 44eac4d16b13a8e346b90d67dc1ecfeb85fb5d82 Mon Sep 17 00:00:00 2001 From: rama0711 Date: Thu, 7 Sep 2023 12:23:17 +0300 Subject: [PATCH] fixed the post commment delete issue --- albumy/blueprints/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/albumy/blueprints/main.py b/albumy/blueprints/main.py index e526d50..631ae24 100644 --- a/albumy/blueprints/main.py +++ b/albumy/blueprints/main.py @@ -362,6 +362,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))