diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-11-18 11:37:42 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-11-18 11:37:42 +0100 |
commit | aba65369d2d55b337939d004b06d6ff10f8519b9 (patch) | |
tree | 0197b53f95679a4a95fa1f5e96b39b7c54748034 /searx/webapp.py | |
parent | b1234ee88947f2ce61a7df361c706622a3ec2a32 (diff) | |
download | searxng-aba65369d2d55b337939d004b06d6ff10f8519b9.tar.gz searxng-aba65369d2d55b337939d004b06d6ff10f8519b9.zip |
[enh] make version of searx readable
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index e25a4067a..332415e6a 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -44,6 +44,7 @@ from searx.engines import ( from searx.utils import ( UnicodeWriter, highlight_content, html_to_text, get_themes ) +from searx.version import VERSION_STRING from searx.https_rewrite import https_rules from searx.languages import language_codes from searx.search import Search @@ -171,6 +172,8 @@ def render(template_name, override_theme=None, **kwargs): if 'autocomplete' not in kwargs: kwargs['autocomplete'] = autocomplete + kwargs['searx_version'] = VERSION_STRING + kwargs['method'] = request.cookies.get('method', 'POST') # override url_for function in templates |