feat: 根目录文档、脚本、gitignore
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import io, sys, pymysql
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
conn = pymysql.connect(host='192.168.1.161', user='devgps', password='dev@2021GPS',
|
||||
database='zentao_dev_2026', charset='utf8mb4')
|
||||
cur = conn.cursor()
|
||||
cur.execute("SELECT id, deleted, bug_type, severity, story, openedby FROM zt_bug WHERE id=2566")
|
||||
print("2566:", cur.fetchone())
|
||||
cur.execute("SELECT COUNT(*) FROM zt_bug WHERE bug_type='prod' AND story=8277 AND deleted='0'")
|
||||
print("8277 的 prod Bug(deleted=0):", cur.fetchone()[0])
|
||||
Reference in New Issue
Block a user