Re-use session. fix #252

This commit is contained in:
Ruud
2012-05-11 23:17:50 +02:00
parent 4bdd23e36a
commit 921a851b7e
17 changed files with 48 additions and 48 deletions
+2 -2
View File
@@ -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