summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-07-30 18:57:00 +0200
committerGitHub <noreply@github.com>2021-07-30 18:57:00 +0200
commit38ee88b3905148460e30982715277e7b30857629 (patch)
tree61cf8004cc09fefeffaafb082b8ce86a1c959da4 /searx/webapp.py
parent3b97657f3bbe9bd84a99d46ad1e26391d62ba496 (diff)
parent5b3eeb6e54d4b88adccdf847c32d8102ff6202a5 (diff)
Merge pull request #229 from dalf/version-from-git
version based on git
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 09c0643be..d638dfb55 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -82,7 +82,7 @@ from searx.utils import (
dict_subset,
match_language,
)
-from searx.version import VERSION_STRING
+from searx.version import VERSION_STRING, GIT_URL
from searx.query import RawTextQuery
from searx.plugins import plugins
from searx.plugins.oa_doi_rewrite import get_doi_resolver
@@ -475,6 +475,7 @@ def render(template_name, override_theme=None, **kwargs):
]
kwargs['instance_name'] = get_setting('general.instance_name')
kwargs['searx_version'] = VERSION_STRING
+ kwargs['searx_git_url'] = GIT_URL
kwargs['get_setting'] = get_setting
# helpers to create links to other pages
@@ -1322,7 +1323,7 @@ def config():
'version': VERSION_STRING,
'brand': {
'CONTACT_URL': get_setting('general.contact_url'),
- 'GIT_URL': get_setting('brand.git_url'),
+ 'GIT_URL': GIT_URL,
'DOCS_URL': get_setting('brand.docs_url'),
},
'doi_resolvers': list(settings['doi_resolvers'].keys()),