This commit is contained in:
j 2016-02-18 19:21:46 +05:30
parent 7cd5befb8a
commit 56d72cb887

View file

@ -11,6 +11,9 @@ from sqlalchemy.ext.declarative import declarative_base
import settings
import state
import logging
logger = logging.getLogger(__name__)
engine = create_engine('sqlite:///%s' % settings.db_path, connect_args={'timeout': 90})
Session = scoped_session(sessionmaker(bind=engine))