Removed deprecation warning for sqlalchemy2.0
This commit is contained in:
parent
7aea7fc0bb
commit
b2a26a421c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue