mirror of
https://github.com/DeclanHoare/shiftgears.git
synced 2025-01-22 18:02:16 +00:00
Fix "MySQL Server has gone away"
This commit is contained in:
parent
7000fce72f
commit
3d6f9adc38
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ from myconfig import config, mappings
|
|||
|
||||
Base = declarative_base()
|
||||
|
||||
engine = create_engine(config["dbaddr"])
|
||||
engine = create_engine(config["dbaddr"], pool_recycle = 3600)
|
||||
DbSession = sessionmaker(bind = engine)
|
||||
|
||||
class ValidationError(Exception):
|
||||
|
|
Loading…
Reference in a new issue