UI - pagination - use count including tag filter for pagination display

pull/1551/head
dgtlmoon 2023-04-29 20:19:18 +02:00
rodzic 5aa713b7ea
commit 40988c55c6
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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