From 5da854395ebb41c5d754a58f2a7d2b79fc041f2f Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Fri, 28 Feb 2025 21:16:27 +0100 Subject: [PATCH] mod allegro --- allegro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allegro.py b/allegro.py index 80c24a2..71c80a1 100644 --- a/allegro.py +++ b/allegro.py @@ -24,9 +24,9 @@ client.connect() # 2️⃣ Pobranie dokumentów z Weaviate def fetch_documents(): collection = client.collections.get("Document") - response = collection.query.fetch_objects() + response = collection.query.fetch_objects().TemporaryDirectory() documents = [] - for o in response.objects.TemporaryDirectory(): + for o in response.objects: file_name = o.properties.get("fileName", "unknown_file") content = o.properties.get("content", "") if content: