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
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user