webapp: get rid of the annoying sqlalchemy warning
authorHelmut Grohne <helmut@subdivi.de>
Tue, 5 Mar 2019 20:45:45 +0000 (21:45 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Tue, 5 Mar 2019 20:45:45 +0000 (21:45 +0100)
The feature is irrelevant here as the ORM isn't being used.

webapp.py

index f45c28e..b9558cd 100644 (file)
--- a/webapp.py
+++ b/webapp.py
@@ -15,6 +15,7 @@ import werkzeug
 
 app = flask.Flask("crossqa")
 app.config["SQLALCHEMY_DATABASE_URI"] = 'sqlite:///db'
+app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
 db = flask_sqlalchemy.SQLAlchemy(app)
 
 src_template = """<!DOCTYPE html>