Cleanup var
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user