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",