forked from openlp/openlp
small fixes
This commit is contained in:
parent
08e1404ffb
commit
b427e216f1
@ -384,8 +384,6 @@ class Manager(object):
|
|||||||
:param object_class: The type of objects to return.
|
:param object_class: The type of objects to return.
|
||||||
:param filter_clause: The filter governing selection of objects to return. Defaults to None.
|
:param filter_clause: The filter governing selection of objects to return. Defaults to None.
|
||||||
"""
|
"""
|
||||||
if not self.session:
|
|
||||||
return
|
|
||||||
query = self.session.query(object_class)
|
query = self.session.query(object_class)
|
||||||
if filter_clause is not None:
|
if filter_clause is not None:
|
||||||
query = query.filter(filter_clause)
|
query = query.filter(filter_clause)
|
||||||
|
@ -145,8 +145,7 @@ class BibleDB(QtCore.QObject, Manager, RegistryProperties):
|
|||||||
if 'file' in kwargs:
|
if 'file' in kwargs:
|
||||||
self.file = kwargs['file']
|
self.file = kwargs['file']
|
||||||
Manager.__init__(self, 'bibles', init_schema, self.file, upgrade)
|
Manager.__init__(self, 'bibles', init_schema, self.file, upgrade)
|
||||||
if self.session:
|
if self.session and 'file' in kwargs:
|
||||||
if 'file' in kwargs:
|
|
||||||
self.get_name()
|
self.get_name()
|
||||||
if 'path' in kwargs:
|
if 'path' in kwargs:
|
||||||
self.path = kwargs['path']
|
self.path = kwargs['path']
|
||||||
|
Loading…
Reference in New Issue
Block a user