auto-sync: 2026-05-21 00:12:27
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user