1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-28 22:07:41 +00:00

Session no longer expires on commit (only in worker thread)

This commit is contained in:
Ozzieisaacs
2020-12-08 08:04:46 +01:00
parent d15d252af7
commit 1a9b220ec2
2 changed files with 5 additions and 4 deletions

View File

@@ -426,7 +426,7 @@ class CalibreDB():
# instances alive once they reach the end of their respective scopes
instances = WeakSet()
def __init__(self, expire_on_commit=False):
def __init__(self, expire_on_commit=True):
""" Initialize a new CalibreDB session
"""
self.session = None