fix: 修改数据库连接密码
This commit is contained in:
parent
745875c5f3
commit
103a28146a
|
|
@ -29,7 +29,7 @@ class Lottery(object):
|
||||||
raise Exception("未知的lottery_type")
|
raise Exception("未知的lottery_type")
|
||||||
|
|
||||||
def _get_db_session(self):
|
def _get_db_session(self):
|
||||||
_engine = create_engine("mysql+pymysql://root:123456@localhost/lottery?charset=utf8")
|
_engine = create_engine("mysql+pymysql://test:123456@localhost/lottery?charset=utf8")
|
||||||
_DbSession = sessionmaker(bind=_engine)
|
_DbSession = sessionmaker(bind=_engine)
|
||||||
return _DbSession()
|
return _DbSession()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue