diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-02 07:22:57 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-02 07:22:57 +0100 |
commit | f9b5fce73bbaa400f3d33d8f43441380e67d3f1f (patch) | |
tree | c4d54fc11beb12503e80e18d719418ffd19f0199 | |
parent | updated python dependencies (diff) | |
download | newspipe-f9b5fce73bbaa400f3d33d8f43441380e67d3f1f.tar.gz newspipe-f9b5fce73bbaa400f3d33d8f43441380e67d3f1f.tar.bz2 newspipe-f9b5fce73bbaa400f3d33d8f43441380e67d3f1f.zip |
Only set those two options when using SQLAlchemy.
-rw-r--r-- | src/bootstrap.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py index f4b4591c..92399e74 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -38,8 +38,9 @@ else: application.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False application.config['SQLALCHEMY_DATABASE_URI'] \ = conf.SQLALCHEMY_DATABASE_URI - application.config['SQLALCHEMY_POOL_SIZE'] = 15 - application.config['SQLALCHEMY_MAX_OVERFLOW'] = 0 + if 'postgres' in conf.SQLALCHEMY_DATABASE_URI: + application.config['SQLALCHEMY_POOL_SIZE'] = 15 + application.config['SQLALCHEMY_MAX_OVERFLOW'] = 0 scheme, domain, _, _, _ = urlsplit(conf.PLATFORM_URL) application.config['SERVER_NAME'] = domain |