Skip to content

Commit

Permalink
Show version of Werkzeug and Jinja2 in stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzieIsaacs committed Sep 29, 2018
1 parent c36b1ed commit ffe3dd3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cps/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ffe3dd3

Please sign in to comment.