Fix "MySQL Server has gone away"

This commit is contained in:
Declan Hoare 2020-04-17 18:38:20 +10:00
parent 7000fce72f
commit 3d6f9adc38

View file

@ -17,7 +17,7 @@ from myconfig import config, mappings
Base = declarative_base() Base = declarative_base()
engine = create_engine(config["dbaddr"]) engine = create_engine(config["dbaddr"], pool_recycle = 3600)
DbSession = sessionmaker(bind = engine) DbSession = sessionmaker(bind = engine)
class ValidationError(Exception): class ValidationError(Exception):