Merge pull request #1431 from widgit/main

Update postgres_impl.py
This commit is contained in:
Daniel.y
2025-04-22 18:34:43 +08:00
committed by GitHub

View File

@@ -1807,7 +1807,10 @@ class PGGraphStorage(BaseGraphStorage):
)
results = await self._query(query)
labels = [result["label"] for result in results]
labels = []
for result in results:
if result and isinstance(result, dict) and "label" in result:
labels.append(result["label"])
return labels
async def get_knowledge_graph(