From 40988c55c66ed00c86e00bc1839f995d38209311 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 29 Apr 2023 20:19:18 +0200 Subject: [PATCH] UI - pagination - use count including tag filter for pagination display --- changedetectionio/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 6340ed15..aeb6f555 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -422,7 +422,8 @@ def changedetection_app(config=None, datastore_o=None): existing_tags = datastore.get_all_tags() form = forms.quickWatchForm(request.form) page = request.args.get(get_page_parameter(), type=int, default=1) - pagination = Pagination(page=page, total=len(datastore.data['watching']), per_page=int(os.getenv('pagination_per_page', 50)), css_framework = "semantic") + total_count = len(sorted_watches) if sorted_watches else len(datastore.data['watching']) + pagination = Pagination(page=page, total=total_count, per_page=int(os.getenv('pagination_per_page', 50)), css_framework = "semantic") output = render_template( "watch-overview.html",