From 0eceec034131cecc1d92cc84091538a8540c715f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 28 May 2021 23:36:36 -0400 Subject: [PATCH] Disable SQLAlchemy modifcation tracking --- api-daemon/pvcapid/flaskapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index aeac9bcf..cf4e5c4c 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -42,6 +42,7 @@ API_VERSION = 1.0 app = flask.Flask(__name__) app.config['CELERY_BROKER_URL'] = 'redis://{}:{}{}'.format(config['queue_host'], config['queue_port'], config['queue_path']) app.config['CELERY_RESULT_BACKEND'] = 'redis://{}:{}{}'.format(config['queue_host'], config['queue_port'], config['queue_path']) +app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://{}:{}@{}:{}/{}'.format(config['database_user'], config['database_password'], config['database_host'], config['database_port'], config['database_name']) if config['debug']: