mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 16:29:17 +02:00
[enh] make version of searx readable
This commit is contained in:
parent
b1234ee889
commit
aba65369d2
8 changed files with 42 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue