Browse Source

Merge pull request #21 from hastic/minor-fixes

Fix Docker run
master
Coin de Gamma 4 years ago committed by GitHub
parent
commit
7c05abda36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      analytics/config.py

2
analytics/config.py

@ -16,7 +16,7 @@ else:
def get_config_field(field: str, default_val = None, allowed_values = []): def get_config_field(field: str, default_val = None, allowed_values = []):
value = None value = None
if field in os.environ: if field in os.environ and os.environ[field] != '':
value = os.environ[field] value = os.environ[field]
elif config_exists and field in config and config[field] != '': elif config_exists and field in config and config[field] != '':
value = config[field] value = config[field]

Loading…
Cancel
Save