Re-use session. fix #252

This commit is contained in:
Ruud committed 2012-05-11 23:17:50 +02:00
1 parent 4bdd23e36a
commit 921a851b7e
17 files changed
+48 -48

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ class Env(object):
@staticmethod
def getEngine():
return create_engine(Env.get('db_path'), echo = False)
return create_engine(Env.get('db_path'), echo = False, pool_recycle = 30)
@staticmethod
def setting(attr, section = 'core', value = None, default = '', type = None):