summaryrefslogtreecommitdiff
path: root/searx/results.py
diff options
context:
space:
mode:
authorobfuscated-loop <codemailbox@protonmail.com>2023-11-22 10:49:45 +0000
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-11-27 14:07:04 +0100
commit99fb565b391b04d10bd2f41fe6ecebb438fc4240 (patch)
tree7823c0c1e9502142e6cb1a8b964bc62462fa7c83 /searx/results.py
parentc3cc24be125564b3ab27b8cdc217bf1e9ffdcd48 (diff)
downloadsearxng-99fb565b391b04d10bd2f41fe6ecebb438fc4240.tar.gz
searxng-99fb565b391b04d10bd2f41fe6ecebb438fc4240.zip
[mod] Retain page numbers even when there are no results
Diffstat (limited to 'searx/results.py')
-rw-r--r--searx/results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/results.py b/searx/results.py
index caf02213d..471d16981 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -232,7 +232,7 @@ class ResultContainer:
if engine_name in engines:
histogram_observe(standard_result_count, 'engine', engine_name, 'result', 'count')
- if not self.paging and standard_result_count > 0 and engine_name in engines and engines[engine_name].paging:
+ if not self.paging and engine_name in engines and engines[engine_name].paging:
self.paging = True
def _merge_infobox(self, infobox):