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

Commit 901905e

Browse files
author
peritz
committed
Format files with black
1 parent 1b90773 commit 901905e

File tree

12 files changed

+372
-349
lines changed

12 files changed

+372
-349
lines changed

pycti/api/opencti_api_client.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -656,27 +656,25 @@ def process_multiple_fields(self, data):
656656
data["rolesIds"] = self.process_multiple_ids(data["roles"])
657657
if "capabilities" in data:
658658
data["capabilities"] = self.process_multiple(data["capabilities"])
659-
data["capabilitiesIds"] = self.process_multiple_ids(
660-
data["capabilities"]
661-
)
659+
data["capabilitiesIds"] = self.process_multiple_ids(data["capabilities"])
662660
if "members" in data:
663661
data["members"] = self.process_multiple(data["members"])
664662
data["membersIds"] = self.process_multiple_ids(data["members"])
665663
if "platform_messages" in data:
666-
data["platform_messages"] = self.process_multiple(
667-
data["platform_messages"])
664+
data["platform_messages"] = self.process_multiple(data["platform_messages"])
668665
data["platform_messages_ids"] = self.process_multiple_ids(
669-
data["platform_messages"])
666+
data["platform_messages"]
667+
)
670668
if "messages_administration" in data:
671669
data["messages_administration"] = self.process_multiple(
672-
data["messages_administration"])
670+
data["messages_administration"]
671+
)
673672
data["messages_administration_ids"] = self.process_multiple_ids(
674-
data["messages_administration"])
673+
data["messages_administration"]
674+
)
675675
if "recipients" in data:
676-
data["recipients"] = self.process_multiple(
677-
data["recipients"])
678-
data["recipientsIds"] = self.process_multiple_ids(
679-
data["recipients"])
676+
data["recipients"] = self.process_multiple(data["recipients"])
677+
data["recipientsIds"] = self.process_multiple_ids(data["recipients"])
680678

681679
# See aliases of GraphQL query in stix_core_object method
682680
if "name_alt" in data:
@@ -749,8 +747,7 @@ def create_draft(self, **kwargs):
749747
)
750748
return queryResult["data"]["draftWorkspaceAdd"]["id"]
751749
else:
752-
self.app_logger.error(
753-
"[create_draft] Missing parameter: draft_name")
750+
self.app_logger.error("[create_draft] Missing parameter: draft_name")
754751
return None
755752

756753
def upload_pending_file(self, **kwargs):

pycti/entities/opencti_capability.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def list(self, **kwargs) -> List[Dict]:
3636
edges {
3737
node {
3838
"""
39-
+ (self.properties if customAttributes is None
40-
else customAttributes)
39+
+ (self.properties if customAttributes is None else customAttributes)
4140
+ """
4241
}
4342
}

0 commit comments

Comments
 (0)