diff options
author | Alexandre Flament <alex@al-f.net> | 2021-07-27 18:37:46 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-07-30 14:40:09 +0200 |
commit | 4b43775c91a3c2ef415527edb4b3c041859453b4 (patch) | |
tree | ad1290823e83664e16be560f7e5ae59c77a9efc7 /searx/utils.py | |
parent | 24fcd7475a280e74105840b7b63fca3be4dbf397 (diff) | |
download | searxng-4b43775c91a3c2ef415527edb4b3c041859453b4.tar.gz searxng-4b43775c91a3c2ef415527edb4b3c041859453b4.zip |
version based on the git repository
This commit remove the need to update the brand for GIT_URL and GIT_BRANCH:
there are read from the git repository.
It is possible to call python -m searx.version freeze to freeze the current version.
Useful when the code is installed outside git (distro package, docker, etc...)
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/utils.py b/searx/utils.py index 285546043..5e2ab18c4 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -16,7 +16,7 @@ from babel.core import get_global from searx import settings from searx.data import USER_AGENTS -from searx.version import VERSION_STRING +from searx.version import VERSION_TAG from searx.languages import language_codes from searx.exceptions import SearxXPathSyntaxException, SearxEngineXPathException from searx import logger @@ -44,7 +44,7 @@ NOTSET = NotSetClass() def searx_useragent(): """Return the searx User Agent""" return 'searx/{searx_version} {suffix}'.format( - searx_version=VERSION_STRING, + searx_version=VERSION_TAG, suffix=settings['outgoing']['useragent_suffix']).strip() |