diff options
author | chai <chaifix@163.com> | 2018-01-26 14:12:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-26 14:12:33 +0800 |
commit | 07704199616228849c17302f21dd5a5a30dbea66 (patch) | |
tree | f9a9fe0e84dfb14dbabac2ebeffb8a7ab75bb821 /cgi-bin/add.py | |
parent | a253c861daed44aad49ae9a195c9b0bc5d309134 (diff) |
*修改
Diffstat (limited to 'cgi-bin/add.py')
-rw-r--r-- | cgi-bin/add.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cgi-bin/add.py b/cgi-bin/add.py index e69de29..440b67f 100644 --- a/cgi-bin/add.py +++ b/cgi-bin/add.py @@ -0,0 +1,22 @@ +#!C:\Python364\python3.exe +# -*- coding: utf-8 -*- +import sys, codecs +import cgi, cgitb +import pymysql +import issuedb +from issuedb import IssueDBFactory +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) + +db = IssueDBFactory.produce() +cursor = db.cursor() + +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) + |