Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 9b6f790

Browse files
committed
[client] Fix useless filtering
1 parent c0d0e69 commit 9b6f790

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,14 +2016,6 @@ def export_list(
20162016
relationship_type=relationship_type,
20172017
)
20182018
if entities_list is not None:
2019-
if element_id: # filtering of the data to keep those in the container
2020-
new_entities_list = [
2021-
entity
2022-
for entity in entities_list
2023-
if ("objectsIds" in entity) and (element_id in entity["objectsIds"])
2024-
]
2025-
entities_list = new_entities_list
2026-
20272019
uuids = []
20282020
for entity in entities_list:
20292021
entity_bundle = self.prepare_export(
@@ -2054,15 +2046,7 @@ def export_selected(
20542046
"id": "bundle--" + str(uuid.uuid4()),
20552047
"objects": [],
20562048
}
2057-
20582049
if entities_list is not None:
2059-
if element_id: # filtering of the data to keep those in the container
2060-
new_entities_list = [
2061-
entity
2062-
for entity in entities_list
2063-
if element_id in entity["objectsIds"]
2064-
]
2065-
entities_list = new_entities_list
20662050
uuids = []
20672051
for entity in entities_list:
20682052
entity_bundle = self.prepare_export(

0 commit comments

Comments
 (0)