From 4b098d7f521965fdbda8ca6f778aa2ed951cb8f4 Mon Sep 17 00:00:00 2001 From: pluja Date: Wed, 4 Nov 2020 09:38:51 +0100 Subject: [PATCH] Add latest update date to /status --- app/routes.py | 3 ++- app/templates/status.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 5fcc840..adfa30a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -776,8 +776,9 @@ def status(): caniregister = True version = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).strip() + update = subprocess.check_output(["git", "log", "-1", "--format=%cd"]).strip() return render_template('status.html', title='STATUS', count=count, max=config['maxInstanceUsers'], file=filen, - cani=caniregister, version=str(version)[2:-1]) + cani=caniregister, version=str(version)[2:-1], update=str(update)[2:-1]) @app.route('/error/') diff --git a/app/templates/status.html b/app/templates/status.html index cf16510..acfb89f 100644 --- a/app/templates/status.html +++ b/app/templates/status.html @@ -47,6 +47,7 @@

Yotter version: {{version}}

+

Latest update: {{update}}