1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-17 07:27:10 +00:00

- added statistics for Tags and series

- Loglevel is displayed as text instead of value
This commit is contained in:
OzzieIsaacs
2017-01-28 20:54:31 +01:00
parent e00a6741c7
commit e9d0bff559
4 changed files with 23 additions and 4 deletions

View File

@@ -973,6 +973,8 @@ def admin_forbidden():
def stats():
counter = len(db.session.query(db.Books).all())
authors = len(db.session.query(db.Authors).all())
categorys = len(db.session.query(db.Tags).all())
series = len(db.session.query(db.Series).all())
versions = uploader.book_formats.get_versions()
vendorpath = os.path.join(config.get_main_dir + "vendor" + os.sep)
if sys.platform == "win32":
@@ -989,7 +991,7 @@ def stats():
versions['KindlegenVersion'] = lines
versions['PythonVersion'] = sys.version
return render_title_template('stats.html', bookcounter=counter, authorcounter=authors, versions=versions,
title=_(u"Statistics"))
categorycounter=categorys, seriecounter=series, title=_(u"Statistics"))
@app.route("/shutdown")