Cleanup after database use
This commit is contained in:
@@ -53,7 +53,7 @@ class LibraryPlugin(Plugin):
|
||||
|
||||
library_dict = l.to_dict(self.default_dict)
|
||||
|
||||
db.remove()
|
||||
db.close()
|
||||
return library_dict
|
||||
|
||||
def update(self, identifier, default_title = '', force = False):
|
||||
@@ -130,7 +130,7 @@ class LibraryPlugin(Plugin):
|
||||
|
||||
fireEvent('library.update_finish', data = library_dict)
|
||||
|
||||
db.remove()
|
||||
db.close()
|
||||
return library_dict
|
||||
|
||||
def updateReleaseDate(self, identifier):
|
||||
@@ -144,7 +144,7 @@ class LibraryPlugin(Plugin):
|
||||
db.commit()
|
||||
|
||||
dates = library.info.get('release_date', {})
|
||||
db.remove()
|
||||
db.close()
|
||||
|
||||
return dates
|
||||
|
||||
|
||||
Reference in New Issue
Block a user