Removed deprecation warning for sqlalchemy2.0

This commit is contained in:
Ozzie Isaacs 2023-08-26 20:26:01 +02:00
parent 7aea7fc0bb
commit b2a26a421c

View File

@ -663,7 +663,7 @@ class CalibreDB:
cls.session_factory = scoped_session(sessionmaker(autocommit=False, cls.session_factory = scoped_session(sessionmaker(autocommit=False,
autoflush=True, autoflush=True,
bind=cls.engine)) bind=cls.engine, future=True))
for inst in cls.instances: for inst in cls.instances:
inst.init_session() inst.init_session()