|
|
@ -43,7 +43,7 @@ app.config.update(
|
|
|
|
args=(app, db),
|
|
|
|
args=(app, db),
|
|
|
|
max_instances=1,
|
|
|
|
max_instances=1,
|
|
|
|
trigger='interval',
|
|
|
|
trigger='interval',
|
|
|
|
seconds=600)])
|
|
|
|
seconds=300)])
|
|
|
|
|
|
|
|
|
|
|
|
if app.config.get('SQLALCHEMY_DATABASE_URI', '').startswith('sqlite://'):
|
|
|
|
if app.config.get('SQLALCHEMY_DATABASE_URI', '').startswith('sqlite://'):
|
|
|
|
@sqlalchemy.event.listens_for(sqlalchemy.engine.Engine, 'connect')
|
|
|
|
@sqlalchemy.event.listens_for(sqlalchemy.engine.Engine, 'connect')
|
|
|
|