From c50f00c1d32336230d2b3841517820d3da8ea1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Wed, 4 Oct 2023 00:24:26 +0000 Subject: [PATCH] Fix env var version --- backend/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/helpers.py b/backend/helpers.py index 408785a..b203f63 100644 --- a/backend/helpers.py +++ b/backend/helpers.py @@ -39,7 +39,7 @@ def load_version(app: Flask): app.config['VERSION'] = subprocess.Popen("echo \"$(git rev-parse --abbrev-ref HEAD)-$(git describe)\"", shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8').strip() + " (debug)" # noqa: E501 # type: ignore return if os.environ.get("SOURCE_VERSION"): - app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[0:7] # type: ignore # noqa: E501 + app.config['VERSION'] = os.environ.get("SOURCE_VERSION") # type: ignore # noqa: E501 return else: app.config['VERSION'] = "Unknown"