Increase property page size.
This commit is contained in:
parent
8645121e82
commit
1354743ded
2
app.py
2
app.py
|
@ -189,7 +189,7 @@ def property_query_page(property_id):
|
||||||
|
|
||||||
page = utils.get_int_arg('page') or 1
|
page = utils.get_int_arg('page') or 1
|
||||||
total = q.count()
|
total = q.count()
|
||||||
page_size = 50
|
page_size = 100
|
||||||
pager = Pagination(page, page_size, total)
|
pager = Pagination(page, page_size, total)
|
||||||
|
|
||||||
page_hits = pager.slice(q)
|
page_hits = pager.slice(q)
|
||||||
|
|
|
@ -11,13 +11,14 @@
|
||||||
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>
|
| <a href="{{ url_for('start_oauth') }}">connect to Wikidata account</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
#}
|
|
||||||
|
|
||||||
{% if not g.user %}
|
{% if not g.user %}
|
||||||
<p>This tool must be connected with Wikidata to work.</p>
|
<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>
|
<p><a href="{{ url_for('start_oauth') }}" class="btn btn-primary btn-lg">Connect with Wikidata</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
#}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for pid, label in props.items() %}
|
{% for pid, label in props.items() %}
|
||||||
<li><a href="{{ url_for('property_query_page', property_id=pid[1:]) }}">{{ label }}</a>
|
<li><a href="{{ url_for('property_query_page', property_id=pid[1:]) }}">{{ label }}</a>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
<p><a href="{{ url_for('browse_page') }}">back to index</a></p>
|
<p><a href="{{ url_for('browse_page') }}">back to index</a></p>
|
||||||
|
|
||||||
|
{#
|
||||||
<p>Sort order:
|
<p>Sort order:
|
||||||
{% if order == 'name' %}
|
{% if order == 'name' %}
|
||||||
<b>name</b> or <a href="{{ set_url_args(sort='count') }}">count</a>
|
<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>
|
<a href="{{ set_url_args(sort='name') }}">name</a> or <b>count</b>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
#}
|
||||||
|
|
||||||
<p>Total: {{ '{:,d}'.format(pager.total_count) }}</p>
|
<p>Total: {{ '{:,d}'.format(pager.total_count) }}</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue