mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-18 18:41: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
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user