summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorjazzzooo <38244149+jazzzooo@users.noreply.github.com>2023-09-15 00:53:03 -0700
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-09-18 16:20:27 +0200
commit223b3487c38a2390ad936943266a44da9cbb810a (patch)
tree6dde6498a4c37731427715d01b6314b09be52897 /searx/webapp.py
parenta9b6963971327605db1509795be7795dc7401f3f (diff)
downloadsearxng-223b3487c38a2390ad936943266a44da9cbb810a.tar.gz
searxng-223b3487c38a2390ad936943266a44da9cbb810a.zip
[fix] spelling
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index ec4f7627e..aa5e545d5 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -938,19 +938,19 @@ def preferences():
errors = engine_errors.get(e.name) or []
if counter('engine', e.name, 'search', 'count', 'sent') == 0:
# no request
- reliablity = None
+ reliability = None
elif checker_success and not errors:
- reliablity = 100
+ reliability = 100
elif 'simple' in checker_result.get('errors', {}):
- # the basic (simple) test doesn't work: the engine is broken accoding to the checker
+ # the basic (simple) test doesn't work: the engine is broken according to the checker
# even if there is no exception
- reliablity = 0
+ reliability = 0
else:
# pylint: disable=consider-using-generator
- reliablity = 100 - sum([error['percentage'] for error in errors if not error.get('secondary')])
+ reliability = 100 - sum([error['percentage'] for error in errors if not error.get('secondary')])
reliabilities[e.name] = {
- 'reliablity': reliablity,
+ 'reliability': reliability,
'errors': [],
'checker': checker_results.get(e.name, {}).get('errors', {}).keys(),
}
@@ -1144,7 +1144,7 @@ def stats():
reverse, key_name, default_value = STATS_SORT_PARAMETERS[sort_order]
def get_key(engine_stat):
- reliability = engine_reliabilities.get(engine_stat['name'], {}).get('reliablity', 0)
+ reliability = engine_reliabilities.get(engine_stat['name'], {}).get('reliability', 0)
reliability_order = 0 if reliability else 1
if key_name == 'reliability':
key = reliability