From ebd1ad2140b3b5a7551e35229c29a90b8cdaeb5a Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 24 Jun 2022 20:50:27 +0000 Subject: [PATCH] Increase database timeout --- apiserver/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/database.py b/apiserver/database.py index 6e968ec..c98c7af 100644 --- a/apiserver/database.py +++ b/apiserver/database.py @@ -5,7 +5,7 @@ from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.exc import IntegrityError -engine = create_engine('sqlite:///data/qotnews.sqlite', connect_args={'timeout': 120}) +engine = create_engine('sqlite:///data/qotnews.sqlite', connect_args={'timeout': 180}) Session = sessionmaker(bind=engine) Base = declarative_base()