From 432bd9b34499b70507658a25fffbafb86393ac1e Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Tue, 2 Jun 2015 16:19:35 +0200 Subject: [PATCH] Make service_name uppercase We need it uppercase to read env vars with that prefix. --- project/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/database.py b/project/database.py index 478e1da..a951adb 100644 --- a/project/database.py +++ b/project/database.py @@ -11,7 +11,7 @@ engines = { def config(): - service_name = os.getenv('DATABASE_SERVICE_NAME') + service_name = os.getenv('DATABASE_SERVICE_NAME').upper() if service_name: engine = engines.get(os.getenv('DATABASE_ENGINE'), engines['sqlite']) else: