Skip to content

Commit

Permalink
Fix SQLALCHEMY_TRACK_MODIFICATIONS warning
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Feb 4, 2021
1 parent 5f1c2b2 commit 825c2dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datagateway_api/src/api_start_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def create_app_infrastructure(flask_app):

if backend_type == "db":
flask_app.config["SQLALCHEMY_DATABASE_URI"] = Constants.DATABASE_URL
flask_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db.init_app(flask_app)

initialise_spec(spec)
Expand Down

0 comments on commit 825c2dd

Please sign in to comment.