Fix missing optional parameter initSession

This commit is contained in:
Ozzieisaacs 2020-12-08 08:19:18 +01:00
parent 1a9b220ec2
commit f677dcb1f4

View File

@ -436,7 +436,7 @@ class CalibreDB():
self.instances.add(self)
def initSession(self, expire_on_commit):
def initSession(self, expire_on_commit=True):
self.session = self.session_factory()
self.session.expire_on_commit = expire_on_commit
self.update_title_sort(self.config)