summaryrefslogtreecommitdiff
path: root/searx/metrics
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/metrics
parenta9b6963971327605db1509795be7795dc7401f3f (diff)
[fix] spelling
Diffstat (limited to 'searx/metrics')
-rw-r--r--searx/metrics/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/searx/metrics/__init__.py b/searx/metrics/__init__.py
index 18d2170d..da33025d 100644
--- a/searx/metrics/__init__.py
+++ b/searx/metrics/__init__.py
@@ -152,19 +152,19 @@ def get_reliabilities(engline_name_list, checker_results):
errors = engine_errors.get(engine_name) or []
if counter('engine', engine_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[engine_name] = {
- 'reliablity': reliablity,
+ 'reliability': reliability,
'errors': errors,
'checker': checker_results.get(engine_name, {}).get('errors', {}),
}