From 42dcf15374893ab32c24a276e2b4caa83f5b5bfc Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 19 Nov 2020 21:38:18 +0000 Subject: [PATCH] Increase sqlite lock timeout --- apiserver/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/database.py b/apiserver/database.py index 24582c6..9b84b47 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') +engine = create_engine('sqlite:///data/qotnews.sqlite', connect_args={'timeout': 120}) Session = sessionmaker(bind=engine) Base = declarative_base()