1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 20:39:59 +00:00

Bugfix Git ident id

This commit is contained in:
OzzieIsaacs 2017-01-30 19:03:55 +01:00
parent b1293c84bc
commit 1d3be7f4c6

View File

@ -714,6 +714,7 @@ def get_tags_json():
def get_update_status(): def get_update_status():
status = {} status = {}
if request.method == "GET": if request.method == "GET":
# should be automatically replaced by git with current commit hash
commit_id = '$Id$' commit_id = '$Id$'
commit = requests.get('https://api.github.com/repos/janeczku/calibre-web/git/refs/heads/master').json() commit = requests.get('https://api.github.com/repos/janeczku/calibre-web/git/refs/heads/master').json()
if "object" in commit and commit['object']['sha'] != commit_id[5:-2]: if "object" in commit and commit['object']['sha'] != commit_id[5:-2]: