From c6ce74f78b47b334dcc87925db6dc40311f22d41 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 29 Apr 2023 18:42:35 +0200 Subject: [PATCH] Cleanup var --- changedetectionio/__init__.py | 2 +- changedetectionio/templates/watch-overview.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 7bd94886..936daf4f 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -422,7 +422,7 @@ 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=50, css_framework = "bulma") + pagination = Pagination(page=page, total=len(datastore.data['watching']), per_page=int(os.getenv('pagination_per_page', 50)), css_framework = "bulma") output = render_template( "watch-overview.html", diff --git a/changedetectionio/templates/watch-overview.html b/changedetectionio/templates/watch-overview.html index 98211568..80ee4ea5 100644 --- a/changedetectionio/templates/watch-overview.html +++ b/changedetectionio/templates/watch-overview.html @@ -39,7 +39,7 @@ - {% if watches|length >= 50 %} + {% if watches|length >= pagination.per_page %} {{ pagination.info }} {% endif %}