Allow database service names to contain dashes.

Fixes #77
This commit is contained in:
Garrett Hyde 2017-02-02 01:10:49 -08:00
parent 31f1455e3b
commit 870c64db0b

View file

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