forked from tanner/qotnews
Increase database timeout
This commit is contained in:
parent
2cc7dd0d6d
commit
ebd1ad2140
|
@ -5,7 +5,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
||||||
from sqlalchemy.orm import sessionmaker
|
from sqlalchemy.orm import sessionmaker
|
||||||
from sqlalchemy.exc import IntegrityError
|
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)
|
Session = sessionmaker(bind=engine)
|
||||||
|
|
||||||
Base = declarative_base()
|
Base = declarative_base()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user