file_node_id fixed

This commit is contained in:
2025-11-14 16:24:15 +00:00
parent 303f09b52f
commit c66118a457
+1
View File
@@ -2105,6 +2105,7 @@ def build_indexes():
# Keep the same ID (`file::<path>`) but store the full set of # Keep the same ID (`file::<path>`) but store the full set of
# attributes so that downstream code can rely on `name`, `lang`, # attributes so that downstream code can rely on `name`, `lang`,
# and `file` (even though `name` will just be the file path). # and `file` (even though `name` will just be the file path).
file_node_id = f"file::{fpath}"
if file_node_id not in graph.graph.nodes: if file_node_id not in graph.graph.nodes:
graph.add_node( graph.add_node(
file_node_id, file_node_id,