mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:30:01 +00:00
Fix warning and some app stuff for ES 7.x
This commit is contained in:
parent
72521c40c7
commit
884334b622
|
@ -51,7 +51,7 @@ settings:
|
||||||
|
|
||||||
filter:
|
filter:
|
||||||
my_ngram:
|
my_ngram:
|
||||||
type: edgeNGram
|
type: edge_ngram
|
||||||
min_gram: 1
|
min_gram: 1
|
||||||
max_gram: 15
|
max_gram: 15
|
||||||
fullword_min:
|
fullword_min:
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if (use_elastic and torrent_query.hits.total > 0) or (torrent_query.items) %}
|
{% if (use_elastic and torrent_query.hits.total.value > 0) or (torrent_query.items) %}
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover table-striped torrent-list">
|
<table class="table table-bordered table-hover table-striped torrent-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -167,7 +167,7 @@ def home(rss):
|
||||||
else:
|
else:
|
||||||
rss_query_string = _generate_query_string(
|
rss_query_string = _generate_query_string(
|
||||||
search_term, category, quality_filter, user_name)
|
search_term, category, quality_filter, user_name)
|
||||||
max_results = min(max_search_results, query_results['hits']['total'])
|
max_results = min(max_search_results, query_results['hits']['total']['value'])
|
||||||
# change p= argument to whatever you change page_parameter to or pagination breaks
|
# change p= argument to whatever you change page_parameter to or pagination breaks
|
||||||
pagination = Pagination(p=query_args['page'], per_page=results_per_page,
|
pagination = Pagination(p=query_args['page'], per_page=results_per_page,
|
||||||
total=max_results, bs_version=3, page_parameter='p',
|
total=max_results, bs_version=3, page_parameter='p',
|
||||||
|
|
Loading…
Reference in a new issue