From e4e8754fc8f70f6c1c6aed41c45b4b82682c4bca Mon Sep 17 00:00:00 2001 From: pluja Date: Thu, 5 Nov 2020 19:25:38 +0100 Subject: [PATCH] Correction with docker versioning (#130) --- app/routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/routes.py b/app/routes.py index d1b4dd1..6b7b05b 100644 --- a/app/routes.py +++ b/app/routes.py @@ -777,9 +777,10 @@ def status(): try: with open ("version.txt", "r") as versionFile: - hsh=versionFile.readlines()[0] - update=versionFile.readlines()[1] - #tag=versionFile.readlines()[2] + ver=versionFile.readlines() + hsh = ver[0] + update= ver[1] + tag=ver[2] except: try: tag = str(subprocess.check_output(["git", "describe", "--tags"]).strip())[2:-1]