Increase property page size.

This commit is contained in:
Edward Betts 2019-12-18 19:00:26 +00:00
parent 8645121e82
commit 1354743ded
3 changed files with 5 additions and 2 deletions

2
app.py
View file

@ -189,7 +189,7 @@ def property_query_page(property_id):
page = utils.get_int_arg('page') or 1
total = q.count()
page_size = 50
page_size = 100
pager = Pagination(page, page_size, total)
page_hits = pager.slice(q)

View file

@ -11,13 +11,14 @@
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>
{% endif %}
</p>
#}
{% if not g.user %}
<p>This tool must be connected with Wikidata to work.</p>
<p><a href="{{ url_for('start_oauth') }}" class="btn btn-primary btn-lg">Connect with Wikidata</a>
{% endif %}
#}
<ul>
{% for pid, label in props.items() %}
<li><a href="{{ url_for('property_query_page', property_id=pid[1:]) }}">{{ label }}</a>

View file

@ -9,6 +9,7 @@
<p><a href="{{ url_for('browse_page') }}">back to index</a></p>
{#
<p>Sort order:
{% if order == 'name' %}
<b>name</b> or <a href="{{ set_url_args(sort='count') }}">count</a>
@ -16,6 +17,7 @@
<a href="{{ set_url_args(sort='name') }}">name</a> or <b>count</b>
{% endif %}
</p>
#}
<p>Total: {{ '{:,d}'.format(pager.total_count) }}</p>