mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 17:06:42 +08:00
Py: ruff format (#17193)
### Summary format issue Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -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