ingestion: report per-platform added/updated correctly; qdrant compose subnet

This commit is contained in:
Paperclip Builder
2026-10-26 22:28:57 +11:00
parent e3f54f58c1
commit 4e52015fd2
2 changed files with 13 additions and 3 deletions

View File

@@ -216,9 +216,8 @@ def run(cfg, mode: str = "sync", log=None) -> RunStats:
stats.chunks_written += len(rows)
bucket = platform_changes.setdefault(doc.platform, {"documents": 0})
bucket["added" if doc.path in manifest else "updated"] = (
bucket.get("added" if doc.path in manifest else "updated", 0) + 1
)
key = "updated" if doc.path in manifest else "added"
bucket[key] = bucket.get(key, 0) + 1
if doc.path in manifest:
stats.updated += 1
log(f"updated {doc.path} ({len(points)} chunk(s))")