mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Short commit hash on heroku
This commit is contained in:
parent
8cc9ed3645
commit
3be307c0f9
@ -37,7 +37,7 @@ def check_config_exists():
|
||||
|
||||
def load_version(app):
|
||||
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"):
|
||||
with open('.version', 'r') as file:
|
||||
data = file.read().replace('\n', '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user