Re-use session. fix #252
This commit is contained in:
1 parent
4bdd23e36a
commit
921a851b7e
17 files changed
+48
-48
No files matched your search
@@ -87,7 +87,7 @@ class FileManager(Plugin):
|
||||
db.commit()
|
||||
|
||||
type_dict = ft.to_dict()
|
||||
db.close()
|
||||
#db.close()
|
||||
return type_dict
|
||||
|
||||
def getTypes(self):
|
||||
@@ -100,5 +100,5 @@ class FileManager(Plugin):
|
||||
for type_object in results:
|
||||
types.append(type_object.to_dict())
|
||||
|
||||
db.close()
|
||||
#db.close()
|
||||
return types
|
||||
Reference in new issue
Block a user