From b19b1a8c467040b0ab543b2d1d32fc384178b068 Mon Sep 17 00:00:00 2001 From: Accusys Date: Thu, 25 Jun 2026 02:02:17 +0800 Subject: [PATCH] fix: count_seeds empty body handling Fix count_seeds() to always pass valid JSON body to Qdrant count API. Empty dict {} was causing EOF error when no source filter provided. --- scripts/utils/qdrant_faces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils/qdrant_faces.py b/scripts/utils/qdrant_faces.py index 9bc460b..37a865e 100644 --- a/scripts/utils/qdrant_faces.py +++ b/scripts/utils/qdrant_faces.py @@ -605,7 +605,7 @@ def count_seeds(source: str = None) -> int: """ ensure_seeds_collection() - body = {} + body = {} # Always pass empty body for count if source: body["filter"] = { "must": [ @@ -613,7 +613,7 @@ def count_seeds(source: str = None) -> int: ] } - result = qdrant_request("POST", f"/collections/{SEEDS_COLLECTION}/points/count", body) + result = qdrant_request("POST", f"/collections/{SEEDS_COLLECTION}/points/count", body if body else {}) return result.get("result", {}).get("count", 0)