From 7ae650e24e8254fa5175549980c72199189bf925 Mon Sep 17 00:00:00 2001 From: Sleeps Date: Wed, 7 Oct 2026 14:27:38 +0100 Subject: [PATCH] Confirm caption batches before marking them synced --- scene_search/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene_search/sync.py b/scene_search/sync.py index 0630bfc..9f9eca8 100644 --- a/scene_search/sync.py +++ b/scene_search/sync.py @@ -63,7 +63,7 @@ def sync_frame_metadata( ] client = meili or _meili_client() - client.update_documents(documents) + client.update_documents(documents, wait=True) synced_ids = [str(row["id"]) for row in rows] placeholders = ",".join("?" for _ in synced_ids)