From cf4e4dc44f02105d31951015839c9ccabe92da82 Mon Sep 17 00:00:00 2001 From: Will Grant Date: Thu, 14 Mar 2024 14:52:00 +0000 Subject: [PATCH] change to apline.js bulk delete code in contact_delete_all() view so bulk delete process is completed correctly --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 201eb47..acbf112 100644 --- a/app.py +++ b/app.py @@ -131,7 +131,8 @@ def contacts_delete_all(): contact.delete() flash("Deleted Contacts!") contacts_set = Contact.all(1) - return render_template("index.html", contacts=contacts_set) + page = int(request.args.get("page", 1)) + return render_template("index.html", contacts=contacts_set, archiver=Archiver.get(), page=page) # ===========================================================