style: format Python files for CI

This commit is contained in:
Xiaoxia AI
2026-06-24 19:54:36 +08:00
parent 1c883ec704
commit f85e389ced
19 changed files with 583 additions and 354 deletions
+10 -8
View File
@@ -1,13 +1,15 @@
"""
创建推进器数据库表结构
"""
import sqlite3
def create_tables():
"""创建数据库表"""
conn = sqlite3.connect("F:/openclaw-saas/tracker.db")
cursor = conn.cursor()
# 创建 tasks 表
cursor.execute("""
CREATE TABLE IF NOT EXISTS tasks (
@@ -27,9 +29,9 @@ def create_tables():
tags TEXT
)
""")
print("[OK] tasks 表创建成功")
# 创建 milestones 表
cursor.execute("""
CREATE TABLE IF NOT EXISTS milestones (
@@ -42,9 +44,9 @@ def create_tables():
description TEXT
)
""")
print("[OK] milestones 表创建成功")
# 创建 logs 表
cursor.execute("""
CREATE TABLE IF NOT EXISTS logs (
@@ -55,12 +57,12 @@ def create_tables():
FOREIGN KEY (task_id) REFERENCES tasks (id)
)
""")
print("[OK] logs 表创建成功")
conn.commit()
conn.close()
print("\n[SUCCESS] 数据库表结构创建完成!")