mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Fix env var version
This commit is contained in:
parent
3b4152f89f
commit
c50f00c1d3
@ -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
|
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
|
return
|
||||||
if os.environ.get("SOURCE_VERSION"):
|
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
|
return
|
||||||
else:
|
else:
|
||||||
app.config['VERSION'] = "Unknown"
|
app.config['VERSION'] = "Unknown"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user