forked from rDrama/rDrama
1
0
Fork 0

admin_home: add git HEAD to server status.

master
Snakes 2022-11-18 14:05:47 -05:00
parent 3e8712cd1d
commit ce84861a44
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 3 additions and 3 deletions

View File

@ -449,8 +449,8 @@ def admin_git_head():
with open('.git/' + head_path, encoding='utf_8') as ref_f:
gitref = ref_f.read()[0:short_len]
except:
return '<unable to read>'
return gitref
return '<unable to read>', ''
return (gitref, head_txt)
@app.post("/admin/site_settings/<setting>")
@admin_level_required(PERMS['SITE_SETTINGS'])

View File

@ -161,7 +161,7 @@
<h4>Server Status</h4>
<div>
Live Revision: <code>{{gitref}}</code> <br>
Live Revision: <code>{{gitref[0]}}</code><code>{{gitref[1]}}</code>
</div>
{% endblock %}