From 7aa3dc373ed797cdb0f01546f342ba43ac744ce5 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 28 Mar 2023 11:45:23 -0700 Subject: [PATCH] SQLA2 migration: use future behavior (#529) --- files/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index ba89a85ce..9dece1228 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -151,7 +151,7 @@ limiter = Limiter( engine = create_engine(app.config['DATABASE_URL']) -db_session = scoped_session(sessionmaker(bind=engine, autoflush=False)) +db_session = scoped_session(sessionmaker(bind=engine, autoflush=False, future=True)) cache = Cache(app) Compress(app)