Make service_name uppercase

We need it uppercase to read env vars with that prefix.
This commit is contained in:
Rodolfo Carvalho 2015-06-02 16:19:35 +02:00
parent 3c3f724fc5
commit 432bd9b344

View file

@ -11,7 +11,7 @@ engines = {
def config(): def config():
service_name = os.getenv('DATABASE_SERVICE_NAME') service_name = os.getenv('DATABASE_SERVICE_NAME').upper()
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: