mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-22 07:31:05 +08:00
Compare commits
2 Commits
dev-202607
...
nightly
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f080a4f45 | ||
|
|
1c5a22e226 |
File diff suppressed because it is too large
Load Diff
@@ -1939,12 +1939,7 @@ async def cleanup_timeline_isolated_entities(
|
||||
if edge is not None:
|
||||
connected_names.update(name.casefold() for name in edge if name)
|
||||
|
||||
orphan_ids = [
|
||||
row_id
|
||||
for row_id, row in rows.items()
|
||||
if row.get("knowledge_graph_kwd") == "entity"
|
||||
and _struct_entity_name(row).casefold() not in connected_names
|
||||
]
|
||||
orphan_ids = [row_id for row_id, row in rows.items() if row.get("knowledge_graph_kwd") == "entity" and _struct_entity_name(row).casefold() not in connected_names]
|
||||
if orphan_ids:
|
||||
await thread_pool_exec(
|
||||
settings.docStoreConn.delete,
|
||||
|
||||
Reference in New Issue
Block a user