A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(core): default to Individual as default type
dextmorgn6265b4af1062
diff --git a/flowsint-core/src/flowsint_core/imports/json/parse_json.py b/flowsint-core/src/flowsint_core/imports/json/parse_json.pyindex 1869fc01..f72181ce 100644--- a/flowsint-core/src/flowsint_core/imports/json/parse_json.py+++ b/flowsint-core/src/flowsint_core/imports/json/parse_json.py@@ -1,7 +1,7 @@import jsonfrom typing import Dict, List-from flowsint_types import TYPE_REGISTRY+from flowsint_types import TYPE_REGISTRY, Individualfrom ..types import Edge, Entity, EntityPreview, FileParseResultfrom ..utils import create_entity_preview@@ -105,7 +105,11 @@ def _parse_node(nodeDict: dict) -> EntityPreview | None:# Type not recognized, fall back to genericreturn create_entity_preview(label)- node = DetectedType.from_string(label)+ if hasattr(DetectedType, "from_string"):+ node = DetectedType.from_string(label)+ else:+ # Default to Individual node type+ node = Individual.from_string(label)detected_type = DetectedType.__name__return EntityPreview(obj=node, detected_type=detected_type)