auto-sync: 2026-05-21 00:12:27

This commit is contained in:
cfdaily
2026-05-21 00:12:27 +08:00
parent 7918763fb8
commit 7ff9239599
+4 -2
View File
@@ -30,8 +30,10 @@ async def list_projects():
db_path = Path(reg.root) / pid / "blackboard.db"
if db_path.exists():
try:
bb = Blackboard(db_path)
info['task_count'] = bb.count_tasks()
conn = sqlite3.connect(str(db_path), timeout=5)
count = conn.execute("SELECT COUNT(*) FROM tasks").fetchone()[0]
conn.close()
info['task_count'] = count
except Exception:
pass
return {"projects": {pid: info for pid, info in projects.items()