fix(dashboard): remove last deepseek-v4-pro-max duplicate from report
- rebuild-report.py: sync current_model from kilo-meta.json (UPDATE not only INSERT) - real-fit-report.json: regenerated from DB after agents table model rename - real-fit.db: 10 agents updated: current_model pro-max → pro - real-fit.html: remove stale model alias fallback
This commit is contained in:
@@ -30,18 +30,22 @@ def _sync_agents_from_meta(db_path: Path) -> None:
|
||||
|
||||
for name, info in meta.get("agents", {}).items():
|
||||
if name in existing:
|
||||
continue
|
||||
cursor.execute(
|
||||
"INSERT OR IGNORE INTO agents (name, description, category, current_model, color, updated) VALUES (?, ?, ?, ?, ?, ?)",
|
||||
(
|
||||
name,
|
||||
info.get("description", ""),
|
||||
info.get("category", "meta"),
|
||||
info.get("model", ""),
|
||||
info.get("color", "#6B7280"),
|
||||
datetime.now(timezone.utc).isoformat(),
|
||||
),
|
||||
)
|
||||
cursor.execute(
|
||||
"UPDATE agents SET current_model = ? WHERE name = ?",
|
||||
(info.get("model", ""), name),
|
||||
)
|
||||
else:
|
||||
cursor.execute(
|
||||
"INSERT INTO agents (name, description, category, current_model, color, updated) VALUES (?, ?, ?, ?, ?, ?)",
|
||||
(
|
||||
name,
|
||||
info.get("description", ""),
|
||||
info.get("category", "meta"),
|
||||
info.get("model", ""),
|
||||
info.get("color", "#6B7280"),
|
||||
datetime.now(timezone.utc).isoformat(),
|
||||
),
|
||||
)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user