From ffe3dd3de3963086fb6ff0f146ccfdf4ae6b7d2c Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 29 Sep 2018 19:21:04 +0200 Subject: [PATCH] Show version of Werkzeug and Jinja2 in stats page --- cps/web.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 5de0a730..c93ca00d 100644 --- a/cps/web.py +++ b/cps/web.py @@ -41,6 +41,8 @@ from flask import (Flask, render_template, request, Response, redirect, url_for, send_from_directory, make_response, g, flash, abort, Markup) from flask import __version__ as flaskVersion +from werkzeug import __version__ as werkzeugVersion +from jinja2 import __version__ as jinja2Version import cache_buster import ub from ub import config @@ -1665,8 +1667,10 @@ def stats(): categorys = db.session.query(db.Tags).count() series = db.session.query(db.Series).count() versions = uploader.book_formats.get_versions() - versions['Babel'] = 'v'+babelVersion - versions['Sqlalchemy'] = 'v'+sqlalchemyVersion + versions['Babel'] = 'v' + babelVersion + versions['Sqlalchemy'] = 'v' + sqlalchemyVersion + versions['Werkzeug'] = 'v' + werkzeugVersion + versions['Jinja2'] = 'v' + jinja2Version versions['Flask'] = 'v'+flaskVersion versions['Flask Login'] = 'v'+flask_loginVersion versions['Flask Principal'] = 'v'+flask_principalVersion