From 683bf93782ed24ae134a0905bd4f8ba3991728c5 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Tue, 7 Jan 2020 11:32:46 +0100
Subject: [PATCH] Add sql alchemy engine options to common configurations.
---
config.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/config.py b/config.py
index 1918d822..48eca6b2 100644
--- a/config.py
+++ b/config.py
@@ -15,6 +15,7 @@ class Config:
MAIL_DEFAULT_SENDER = os.environ.get('MAIL_DEFAULT_SENDER')
''' ### Flask-SQLAlchemy ### '''
+ SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30, 'pool_timeout': 30}
SQLALCHEMY_TRACK_MODIFICATIONS = False
''' ### Opaque ### '''
@@ -31,8 +32,6 @@ class DevelopmentConfig(Config):
DEBUG = True
''' ### Flask-SQLAlchemy ### '''
- SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30,
- 'pool_timeout': 30}
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
os.environ.get('POSTGRES_USER'),
os.environ.get('POSTGRES_PASSWORD'),