From 103a28146ad6fa828730e9cd6a490cc66013f3ee Mon Sep 17 00:00:00 2001 From: chenwj113 Date: Tue, 22 Nov 2022 14:11:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=BF=9E=E6=8E=A5=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lottery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lottery.py b/lottery.py index 1b5f125..46e4f63 100644 --- a/lottery.py +++ b/lottery.py @@ -29,7 +29,7 @@ class Lottery(object): raise Exception("未知的lottery_type") 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) return _DbSession()