From 36f6434c9e4d4f4bfec6b425b1caa6495d7c3be3 Mon Sep 17 00:00:00 2001 From: ShubhamCodeWiz Date: Sun, 31 Aug 2025 12:21:05 +0530 Subject: [PATCH 1/3] docs: Add personal notes file --- notes.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 notes.txt diff --git a/notes.txt b/notes.txt new file mode 100644 index 0000000000..40b7b8b30e --- /dev/null +++ b/notes.txt @@ -0,0 +1 @@ +My personal notes for the Flask project From eae6d20e1aa5e0775ed85a98443249104320af7a Mon Sep 17 00:00:00 2001 From: ShubhamCodeWiz Date: Mon, 1 Sep 2025 19:35:34 +0530 Subject: [PATCH 2/3] feat: Expand notes with more details --- notes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/notes.txt b/notes.txt index 40b7b8b30e..3a14cd5160 100644 --- a/notes.txt +++ b/notes.txt @@ -1 +1,2 @@ My personal notes for the Flask project +This new line is only on my feature branch. From e3697b90e9371c3092301f788e1cf78e1e6b9a8e Mon Sep 17 00:00:00 2001 From: ShubhamCodeWiz Date: Wed, 3 Sep 2025 18:44:49 +0530 Subject: [PATCH 3/3] feat(example/blog): Add flash messages for user feedback --- examples/tutorial/flaskr/blog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/tutorial/flaskr/blog.py b/examples/tutorial/flaskr/blog.py index be0d92c435..838cd87d33 100644 --- a/examples/tutorial/flaskr/blog.py +++ b/examples/tutorial/flaskr/blog.py @@ -78,6 +78,7 @@ def create(): (title, body, g.user["id"]), ) db.commit() + flash("Post created successfully!", "success") return redirect(url_for("blog.index")) return render_template("blog/create.html") @@ -105,6 +106,7 @@ def update(id): "UPDATE post SET title = ?, body = ? WHERE id = ?", (title, body, id) ) db.commit() + flash("Post updated successfully!", "success") return redirect(url_for("blog.index")) return render_template("blog/update.html", post=post) @@ -122,4 +124,5 @@ def delete(id): db = get_db() db.execute("DELETE FROM post WHERE id = ?", (id,)) db.commit() + flash("Post deleted successfully!", "success") return redirect(url_for("blog.index"))