Increase database timeout
This commit is contained in:
parent
074b898508
commit
57de076fec
|
@ -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': 180})
|
||||
engine = create_engine('sqlite:///data/qotnews.sqlite', connect_args={'timeout': 360})
|
||||
Session = sessionmaker(bind=engine)
|
||||
|
||||
Base = declarative_base()
|
||||
|
@ -118,4 +118,5 @@ def get_story_list():
|
|||
if __name__ == '__main__':
|
||||
init()
|
||||
|
||||
print(get_story_by_ref('hgi3sy'))
|
||||
#print(get_story_by_ref('hgi3sy'))
|
||||
print(len(get_reflist(99999)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user