diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-04-26 16:00:04 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-04-26 16:00:04 +0200 |
commit | 53705a48f3b5991db229a9bc72de9ffd8fe7c861 (patch) | |
tree | 738e3a20453662708489ee2e406b4e39e2685ab3 /api/status.py | |
parent | 3a95ac4ad928fbd49abe070cd9cd4e51e21007fb (diff) |
use uwsgi
Diffstat (limited to 'api/status.py')
-rw-r--r-- | api/status.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/status.py b/api/status.py index 623a180..e8ecdf7 100644 --- a/api/status.py +++ b/api/status.py @@ -2,11 +2,11 @@ from flask import Blueprint from db import cursor import json -HEAD = open(".git/HEAD", "r").read().split(" ")[1].strip() -commit = open(".git/" + HEAD, "r").read().strip() +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"], + "number": json.loads(open("../package.json", "r").read())["version"], "commit": commit, "commit_short": commit[0:8] } |