From 66f711bd1c76128c5df9a660b9d0c5bba5ac89b2 Mon Sep 17 00:00:00 2001 From: Nate Wagenhoffer <77755517+wagenhoffer@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:07:03 +0000 Subject: [PATCH 1/4] fun new worlds --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4125210..b5c86ee 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ __pycache__/ # C extensions *.so +#.csv # Distribution / packaging .Python From 01269ec8a82e95a574b2ab88c6cee7d3814ccebe Mon Sep 17 00:00:00 2001 From: Nate Wagenhoffer <77755517+wagenhoffer@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:14:23 +0000 Subject: [PATCH 2/4] i am not usign threads in emails --- albumy/emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/albumy/emails.py b/albumy/emails.py index f7a5155..91ccf7c 100644 --- a/albumy/emails.py +++ b/albumy/emails.py @@ -5,7 +5,7 @@ :copyright: © 2018 Grey Li :license: MIT, see LICENSE for more details. """ -from threading import Thread +# from threading import Thread from flask import current_app, render_template from flask_mail import Message From 35542bc55941bee37a7bacd669afab0a32547fea Mon Sep 17 00:00:00 2001 From: Nate Wagenhoffer <77755517+wagenhoffer@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:47:39 +0000 Subject: [PATCH 3/4] its a messa --- .flaskenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.flaskenv b/.flaskenv index 173af01..4d748a7 100644 --- a/.flaskenv +++ b/.flaskenv @@ -1,2 +1,2 @@ -FLASK_APP=albumy +FLASK_APP=bum FLASK_ENV=development From 4f9c45efef4512cf875706272163c238bcb27482 Mon Sep 17 00:00:00 2001 From: darsh8692 Date: Wed, 11 Oct 2023 19:36:11 -0400 Subject: [PATCH 4/4] Delete comments --- .flaskenv | 2 +- albumy/blueprints/main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.flaskenv b/.flaskenv index 4d748a7..173af01 100644 --- a/.flaskenv +++ b/.flaskenv @@ -1,2 +1,2 @@ -FLASK_APP=bum +FLASK_APP=albumy FLASK_ENV=development 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))