summaryrefslogtreecommitdiff
path: root/searx/botdetection
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-10-09 11:59:31 +0200
committerBnyro <bnyro@tutanota.com>2024-11-24 12:41:57 +0100
commitf31a3a2053b07b834c5143bd6be4eaf05c1a014d (patch)
tree9f74011af2301a313b6780e711324efd88435b70 /searx/botdetection
parent0253c10b522fe2e8206db78e37066771ce90cf92 (diff)
downloadsearxng-f31a3a2053b07b834c5143bd6be4eaf05c1a014d.tar.gz
searxng-f31a3a2053b07b834c5143bd6be4eaf05c1a014d.zip
[chore] *: fix typos detected by typos-cli
Diffstat (limited to 'searx/botdetection')
-rw-r--r--searx/botdetection/config.py6
-rw-r--r--searx/botdetection/link_token.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/searx/botdetection/config.py b/searx/botdetection/config.py
index 2a982ba64..274be77df 100644
--- a/searx/botdetection/config.py
+++ b/searx/botdetection/config.py
@@ -22,7 +22,7 @@ log = logging.getLogger(__name__)
class FALSE:
- """Class of ``False`` singelton"""
+ """Class of ``False`` singleton"""
# pylint: disable=multiple-statements
def __init__(self, msg):
@@ -81,7 +81,7 @@ class Config:
return cfg
def __init__(self, cfg_schema: typing.Dict, deprecated: typing.Dict[str, str]):
- """Construtor of class Config.
+ """Constructor of class Config.
:param cfg_schema: Schema of the configuration
:param deprecated: dictionary that maps deprecated configuration names to a messages
@@ -159,7 +159,7 @@ class Config:
return pathlib.Path(str(val))
def pyobj(self, name, default=UNSET):
- """Get python object refered by full qualiffied name (FQN) in the config
+ """Get python object referred by full qualiffied name (FQN) in the config
string."""
fqn = self.get(name, default)
diff --git a/searx/botdetection/link_token.py b/searx/botdetection/link_token.py
index 8f8e9839c..4273e22c5 100644
--- a/searx/botdetection/link_token.py
+++ b/searx/botdetection/link_token.py
@@ -55,10 +55,10 @@ from ._helpers import (
)
TOKEN_LIVE_TIME = 600
-"""Livetime (sec) of limiter's CSS token."""
+"""Lifetime (sec) of limiter's CSS token."""
PING_LIVE_TIME = 3600
-"""Livetime (sec) of the ping-key from a client (request)"""
+"""Lifetime (sec) of the ping-key from a client (request)"""
PING_KEY = 'SearXNG_limiter.ping'
"""Prefix of all ping-keys generated by :py:obj:`get_ping_key`"""