Removed deprecation warning for sqlalchemy2.0
This commit is contained in:
parent
7aea7fc0bb
commit
b2a26a421c
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user