diff options
author | chai <chaifix@163.com> | 2018-01-29 15:37:45 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-29 15:37:45 +0800 |
commit | 5d77906331243354710712ddf45b8bcb2152dacc (patch) | |
tree | 28319897afc0d22fde2e42e834885f16834a6db6 /cgi-bin/add.py | |
parent | 07704199616228849c17302f21dd5a5a30dbea66 (diff) |
*修改
Diffstat (limited to 'cgi-bin/add.py')
-rw-r--r-- | cgi-bin/add.py | 16 |
1 files changed, 6 insertions, 10 deletions
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 = """ -<html> -<head> -<meta http-equiv="refresh" content="0;url=issue?id={0}"> -</head> -</html> -""".format(1) -print(redirect) +print(add_html) + +add_html_file.close() + |