mirror of
https://github.com/searxng/searxng.git
synced 2025-08-05 11:26:43 +02:00
[fix] cleanup: rename searx
leftovers to SearXNG
(#5049)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
02cbdf468b
commit
649a8dd577
19 changed files with 33 additions and 35 deletions
|
@ -61,11 +61,9 @@ class _NotSetClass: # pylint: disable=too-few-public-methods
|
|||
_NOTSET = _NotSetClass()
|
||||
|
||||
|
||||
def searx_useragent() -> str:
|
||||
"""Return the searx User Agent"""
|
||||
return 'searx/{searx_version} {suffix}'.format(
|
||||
searx_version=VERSION_TAG, suffix=settings['outgoing']['useragent_suffix']
|
||||
).strip()
|
||||
def searxng_useragent() -> str:
|
||||
"""Return the SearXNG User Agent"""
|
||||
return f"SearXNG/{VERSION_TAG} {settings['outgoing']['useragent_suffix']}".strip()
|
||||
|
||||
|
||||
def gen_useragent(os_string: Optional[str] = None) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue