diff --git a/files/__main__.py b/files/__main__.py index 1031e774c..50d14d934 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -113,7 +113,7 @@ class RetryingQuery(_Query): Base = declarative_base() -db_session = scoped_session(sessionmaker(bind=_engine, query_cls=RetryingQuery, autoflush=False)) +db_session = scoped_session(sessionmaker(bind=_engine, query_cls=RetryingQuery)) @app.before_request