From 5d77906331243354710712ddf45b8bcb2152dacc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 29 Jan 2018 15:37:45 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cgi-bin/add.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'cgi-bin/add.py') diff --git a/cgi-bin/add.py b/cgi-bin/add.py index 440b67f..0f7c13d 100644 --- a/cgi-bin/add.py +++ b/cgi-bin/add.py @@ -7,16 +7,12 @@ import issuedb from issuedb import IssueDBFactory sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) -db = IssueDBFactory.produce() -cursor = db.cursor() +add_html_file = open("add.html", 'r', encoding='utf8') +add_html = add_html_file.read() print("Content-type:text/html\n") -redirect = """ - - - - - -""".format(1) -print(redirect) +print(add_html) + +add_html_file.close() + -- cgit v1.1-26-g67d0