diff options
-rw-r--r-- | api/status.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/status.py b/api/status.py index c8597f4..623a180 100644 --- a/api/status.py +++ b/api/status.py @@ -3,10 +3,12 @@ from db import cursor import json HEAD = open(".git/HEAD", "r").read().split(" ")[1].strip() +commit = open(".git/" + HEAD, "r").read().strip() version = { "number": json.loads(open("package.json", "r").read())["version"], - "commit": open(".git/" + HEAD, "r").read().strip() + "commit": commit, + "commit_short": commit[0:8] } status = Blueprint('server_status', __name__) |