diff --git a/app/__init__.py b/app/__init__.py index 2f38666..9b9eb7e 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,7 +1,7 @@ from flask import Flask from flask_sqlalchemy import SQLAlchemy -db = SQLAlchemy() +db = SQLAlchemy(session_options={"autoflush": False, "autocommit": False, "expire_on_commit": False}) def create_app():