fix: 修改数据库连接地址
This commit is contained in:
parent
efc52dbcdf
commit
95b41b25b9
|
|
@ -32,7 +32,7 @@ class Lottery(object):
|
|||
raise Exception("未知的lottery_type")
|
||||
|
||||
def _get_db_session(self):
|
||||
_engine = create_engine("mysql+pymysql://test:123456@172.17.0.1/lottery?charset=utf8", pool_pre_ping=True, pool_recycle=3600)
|
||||
_engine = create_engine("mysql+pymysql://root:Chenweijia113!@172.17.0.1/lottery?charset=utf8", pool_pre_ping=True, pool_recycle=3600)
|
||||
_DbSession = sessionmaker(bind=_engine)
|
||||
return _DbSession()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue