From 0abdfeef57c03c2eb35d686819c9daf176bb1774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Fri, 27 Dec 2019 14:18:59 +0100 Subject: [PATCH] Old SQLAlchemy version, old fix --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 06a8295..cfced14 100644 --- a/config.py +++ b/config.py @@ -29,7 +29,7 @@ app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://%s:%s@%s/%s?charset=utf db_user, db_password, db_host, db_name ) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True -app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {'pool_recycle': 200} +app.config['SQLALCHEMY_POOL_RECYCLE'] = 200 app.config['SQLALCHEMY_ECHO'] = IS_DEBUG auth = HTTPBasicAuth() db = SQLAlchemy(app)