diff --git a/quotes-api/db.py b/quotes-api/db.py index e2b1a10..3b23369 100644 --- a/quotes-api/db.py +++ b/quotes-api/db.py @@ -1,7 +1,7 @@ import flask_sqlalchemy -db = flask_sqlalchemy.SQLAlchemy() +db = flask_sqlalchemy.SQLAlchemy(session_options=dict(autoflush=False)) class Quote(db.Model): diff --git a/twitch-cache-api/db.py b/twitch-cache-api/db.py index 3bcaec3..fb642df 100644 --- a/twitch-cache-api/db.py +++ b/twitch-cache-api/db.py @@ -1,7 +1,7 @@ import flask_sqlalchemy -db = flask_sqlalchemy.SQLAlchemy() +db = flask_sqlalchemy.SQLAlchemy(session_options=dict(autoflush=False)) class Video(db.Model):