1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-30 06:43:03 +00:00

improved session handling

This commit is contained in:
Ozzie Isaacs
2021-01-10 15:02:04 +01:00
parent 263a8f9048
commit e5f754ed0e
4 changed files with 392 additions and 221 deletions

View File

@@ -545,7 +545,7 @@ class CalibreDB():
backref='books'))
cls.session_factory = scoped_session(sessionmaker(autocommit=False,
autoflush=False,
autoflush=True,
bind=cls.engine))
for inst in cls.instances:
inst.initSession()