From 1275e68efa680e55fd29a377c9c58c59bb7f235e Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 10 Jul 2018 22:01:22 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cgi-bin/connect.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cgi-bin/connect.py') diff --git a/cgi-bin/connect.py b/cgi-bin/connect.py index c027978..09c1942 100644 --- a/cgi-bin/connect.py +++ b/cgi-bin/connect.py @@ -6,9 +6,8 @@ host = Config.get("database", "host") port = Config.get("database", "port") user = Config.get("database", "user") passwd = Config.get("database", "passwd") -db = Config.get("database", "database") - +db = Config.get("database", "db") class Connect(object): def produce(): - return pymysql.connect(host, user, passwd, db) + return pymysql.connect(host, user, passwd, db) -- cgit v1.1-26-g67d0