Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit a26b744f authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

update version string format

parent 678cf1a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" {% if rtl %} dir="rtl" {% endif %} class="{{ etheme_style }}">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" {% if rtl %} dir="rtl" {% endif %} class="{{ etheme_style }}">
<head>
<head>
    {% set version = spot_version.split('+') %}
    {% set version = spot_version %}
    <meta charset="UTF-8" />
    <meta charset="UTF-8" />
    <meta name="description" content="spot ecloud global, powered by searx" />
    <meta name="description" content="spot ecloud global, powered by searx" />
    <meta name="keywords" content="spot, ecloud, searx, search, search engine, metasearch, meta search" />
    <meta name="keywords" content="spot, ecloud, searx, search, search engine, metasearch, meta search" />
+1 −1
Original line number Original line Diff line number Diff line
@@ -24,7 +24,7 @@ except DistributionNotFound:
    VERSION_STRING = "0.0.0"
    VERSION_STRING = "0.0.0"


try:
try:
    SPOT_VERSION, METADATA_VERSION = VERSION_STRING.split("+")
    METADATA_VERSION, SPOT_VERSION = VERSION_STRING.split("-")
except ValueError:
except ValueError:
    SPOT_VERSION = VERSION_STRING
    SPOT_VERSION = VERSION_STRING
    METADATA_VERSION = ""
    METADATA_VERSION = ""
+2 −2
Original line number Original line Diff line number Diff line
@@ -70,7 +70,7 @@ from searx.webutils import (
)
)
from searx.webadapter import get_search_query_from_webapp, get_selected_categories
from searx.webadapter import get_search_query_from_webapp, get_selected_categories
from searx.utils import html_to_text, gen_useragent, dict_subset, match_language
from searx.utils import html_to_text, gen_useragent, dict_subset, match_language
from searx.version import VERSION_STRING
from searx.version import VERSION_STRING, SPOT_VERSION
from searx.languages import language_codes as languages
from searx.languages import language_codes as languages
from searx.search import SearchWithPlugins, initialize as search_initialize
from searx.search import SearchWithPlugins, initialize as search_initialize
from searx.search.checker import get_result as checker_get_result
from searx.search.checker import get_result as checker_get_result
@@ -409,7 +409,7 @@ def render(template_name, override_theme=None, **kwargs):
    if locale in rtl_locales and 'rtl' not in kwargs:
    if locale in rtl_locales and 'rtl' not in kwargs:
        kwargs['rtl'] = True
        kwargs['rtl'] = True


    kwargs['spot_version'] = VERSION_STRING
    kwargs['spot_version'] = SPOT_VERSION


    kwargs['year'] = datetime.today().year
    kwargs['year'] = datetime.today().year