diff --git a/server/app.py b/server/app.py index 3c0f67e..a99845a 100644 --- a/server/app.py +++ b/server/app.py @@ -405,9 +405,11 @@ def force_refresh_collection(collection_id: int): @flask_app.route("/stats") def show_stats(): elements: List[MediaElement] = MediaElement.select() + collections: List[MediaCollection] = MediaCollection.select() return render_template( "stats.htm", stats={ + "last_updated": orm.max(c.last_updated for c in collections), "media": { "known": orm.count(elements), "known_seconds": orm.sum(m.length for m in elements), diff --git a/server/templates/stats.htm b/server/templates/stats.htm index affc196..b5ba1bd 100644 --- a/server/templates/stats.htm +++ b/server/templates/stats.htm @@ -11,6 +11,9 @@ {{ macros.body_header() }}