From 807c59cc059c30c66c93bcb27be205a552287683 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 29 Apr 2024 14:39:09 +0200 Subject: [PATCH] chg: [analyst-data] Make sure to include note_type_name --- pymisp/mispevent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymisp/mispevent.py b/pymisp/mispevent.py index b76cdd1..068ac85 100644 --- a/pymisp/mispevent.py +++ b/pymisp/mispevent.py @@ -2382,7 +2382,7 @@ class MISPDecayingModel(AbstractMISP): class MISPAnalystData(AbstractMISP): _fields_for_feed: set[str] = {'uuid', 'object_uuid', 'object_type', 'authors', - 'created', 'distribution', 'sharing_group_id', } + 'created', 'distribution', 'sharing_group_id', 'note_type_name'} valid_object_type = {'Attribute', 'Event', 'EventReport', 'GalaxyCluster', 'Galaxy', 'Object', 'Note', 'Opinion', 'Relationship', 'Organisation', @@ -2417,6 +2417,7 @@ class MISPAnalystData(AbstractMISP): self.created: float | int | datetime self.modified: float | int | datetime self.SharingGroup: MISPSharingGroup + self.note_type_name = self.classObjectType def from_dict(self, **kwargs) -> None: # type: ignore[no-untyped-def] if 'Note' in kwargs: