1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-18 03:09:57 +00:00

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,
autoflush=True,
bind=cls.engine))
bind=cls.engine, future=True))
for inst in cls.instances:
inst.init_session()