Removed pool_pre_ping=True from create_engine.

doc_update
Joey Hines 2018-09-13 14:14:28 -05:00
parent 23c9ecc72a
commit 984c693c88
1 changed files with 2 additions and 2 deletions

View File

@ -26,9 +26,9 @@ class GeoffreyDatabase:
def __init__(self, bot_config, debug):
if not debug:
self.engine = create_engine(bot_config.engine_args, pool_recycle=3600, pool_pre_ping=True)
self.engine = create_engine(bot_config.engine_args, pool_recycle=3600)
else:
self.engine = create_engine(bot_config.config['SQL']['test_args'], pool_recycle=3600, pool_pre_ping=True)
self.engine = create_engine(bot_config.config['SQL']['test_args'], pool_recycle=3600)
self.Session = sessionmaker(bind=self.engine)
SQL_Base.metadata.create_all(self.engine)