fix: 修改数据库连接密码

This commit is contained in:
chenwj113 2022-11-22 14:11:56 +08:00
parent 745875c5f3
commit 103a28146a
1 changed files with 1 additions and 1 deletions

View File

@ -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()