From e101db7d7dca0dff5459b42e8d95cb5b3fadd8a5 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 21 Jul 2018 15:29:35 -0500 Subject: [PATCH] Added pool_recyle to eng_args --- DatabaseModels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DatabaseModels.py b/DatabaseModels.py index 346c27e..f62cb6a 100644 --- a/DatabaseModels.py +++ b/DatabaseModels.py @@ -247,7 +247,7 @@ class DiscordDatabaseInterface(DatabaseInterface): class GeoffreyDatabase: def __init__(self, engine_arg): - self.engine = create_engine(engine_arg, echo=True) + self.engine = create_engine(engine_arg, echo=, pool_recycle=3600) Session = sessionmaker(bind=self.engine) self.session = Session() self.meta = MetaData()