Add latest update date to /status

This commit is contained in:
pluja 2020-11-04 09:38:51 +01:00
parent 39dafeaade
commit 4b098d7f52
2 changed files with 3 additions and 1 deletions

View File

@ -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/<errno>')

View File

@ -47,6 +47,7 @@
<div class="ui segments">
<div class="ui segment">
<p>Yotter version: <b><a href="https://github.com/ytorg/Yotter/commits/dev-indep">{{version}}</a></b></p>
<p>Latest update: <b><a href="https://github.com/ytorg/Yotter/commits/dev-indep">{{update}}</a></b></p>
</div>
</div>
</div>