Merge pull request #78 from ghyde/fix-service-names

Allow database service names to contain dashes.
This commit is contained in:
Ben Parees 2017-02-02 11:41:37 -05:00 committed by GitHub
commit 856f5572cf

View file

@ -11,7 +11,7 @@ engines = {
def config(): def config():
service_name = os.getenv('DATABASE_SERVICE_NAME', '').upper() service_name = os.getenv('DATABASE_SERVICE_NAME', '').upper().replace('-', '_')
if service_name: if service_name:
engine = engines.get(os.getenv('DATABASE_ENGINE'), engines['sqlite']) engine = engines.get(os.getenv('DATABASE_ENGINE'), engines['sqlite'])
else: else: