Skip to content
Snippets Groups Projects
Commit 5e539ec0c9b5 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[views] add max pagination (avoid elasticsearch crash) (closes #17049617)

parent e6db12c7be33
No related branches found
No related tags found
No related merge requests found
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
href=xml_escape(self._cw.build_url(**url_params))))) href=xml_escape(self._cw.build_url(**url_params)))))
else: else:
ul(t.li(t.a(self.previous_link))) ul(t.li(t.a(self.previous_link)))
total_pages = (response.hits.total / 10) + 2 total_pages = min((response.hits.total / 10) + 2, 1000)
page_padding = 3 page_padding = 3
if current_page > page_padding: if current_page > page_padding:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment