Cleanup var

pagination
dgtlmoon 2 years ago
parent 5b535e2a26
commit c6ce74f78b

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

@ -39,7 +39,7 @@
<button class="pure-button button-secondary button-xsmall" name="op" value="notification-default">Use default notification</button>
<button class="pure-button button-secondary button-xsmall" style="background: #dd4242; font-size: 70%" name="op" value="delete">Delete</button>
</div>
{% if watches|length >= 50 %}
{% if watches|length >= pagination.per_page %}
{{ pagination.info }}
{% endif %}
<div>

Loading…
Cancel
Save