Skip to content

Commit 30c0cd4

Browse files
committed
remove conversion to set, add conversion to lsit
1 parent 395763e commit 30c0cd4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/cbapi/psc/threathunter/models.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,18 @@ def __init__(self, cb, model_unique_id):
3434
url = self.urlobject_single.format(cb.credentials.org_key)
3535
summary = cb.get_object(url, query_parameters={"process_guid": model_unique_id})
3636

37-
siblings = set(summary["siblings"])
38-
children = set(summary["children"])
39-
4037
while summary["incomplete_results"]:
4138
log.debug("summary incomplete, requesting again")
4239
more_summary = self._cb.get_object(
4340
url, query_parameters={"process_guid": self.process_guid}
4441
)
45-
siblings.update(more_summary["siblings"])
46-
children.update(more_summary["children"])
42+
summary["siblings"] = more_summary["siblings"]
43+
summary["children"] = more_summary["children"]
44+
summary["incomplete_results"] = more_summary["incomplete_results"]
45+
4746

48-
summary["siblings"] = list(siblings)
49-
summary["children"] = list(children)
47+
summary["siblings"] = list(summary["siblings"])
48+
summary["children"] = list(summary["children"])
5049

5150
super(Process.Summary, self).__init__(cb, model_unique_id=model_unique_id,
5251
initial_data=summary, force_init=False,

0 commit comments

Comments
 (0)