mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2026-10-25 18:30:24 +01:00
Short commit hash on heroku
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -37,7 +37,7 @@ def check_config_exists():
|
|||||||
|
|
||||||
def load_version(app):
|
def load_version(app):
|
||||||
if os.environ.get("SOURCE_VERSION"):
|
if os.environ.get("SOURCE_VERSION"):
|
||||||
app.config['VERSION'] = os.environ.get("SOURCE_VERSION")
|
app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[0:7]
|
||||||
elif os.path.isfile(".version"):
|
elif os.path.isfile(".version"):
|
||||||
with open('.version', 'r') as file:
|
with open('.version', 'r') as file:
|
||||||
data = file.read().replace('\n', '')
|
data = file.read().replace('\n', '')
|
||||||
|
|||||||
Reference in new issue
Block a user