feat: 根目录文档、脚本、gitignore
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# -*- 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, title, status, stage, estimate, product, module, assignedto, openedby FROM zt_story WHERE id=9130")
|
||||
print("story:", cur.fetchone())
|
||||
cur.execute("SELECT spec, verify FROM zt_storyspec WHERE story=9130 ORDER BY version DESC LIMIT 1")
|
||||
row = cur.fetchone()
|
||||
if row:
|
||||
print("--- spec ---"); print((row[0] or '')[:2000])
|
||||
print("--- verify ---"); print((row[1] or '')[:500])
|
||||
cur.execute("SELECT id, name, status, type, estimate, assignedto FROM zt_task WHERE story=9130 AND deleted='0'")
|
||||
print("--- tasks ---")
|
||||
for r in cur.fetchall(): print(r)
|
||||
Reference in New Issue
Block a user