Skip to content
Snippets Groups Projects
Commit 85f62bac authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Imporve logic to get the web2py version.

parent 2893f895
No related branches found
No related tags found
No related merge requests found
......@@ -442,9 +442,11 @@ def get_versions():
mathjax = m.group(1)
# web2py
li = [str(el) for el in current.request.env.web2py_version if isinstance(el, int)]
web2py = '.'.join(li)
web2py = ''
m = re.match('\d+\.\d+\.\d+', current.request.env.web2py_version)
if m:
web2py = m.group()
# version of the application
myapp = current.T("unknown")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment