Skip to content

Commit 614d2e0

Browse files
committed
fix: [AnalystData] Added missing properties for Notes and Opinions
- This is now needed because MISPNote and MISPOpinion are no longer part of AnalystDataBehaviorMixin and cannot then get them from there
1 parent ea8fd62 commit 614d2e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pymisp/mispevent.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,14 @@ class MISPAnalystData(AbstractMISP):
25322532
def analyst_data_object_type(self) -> str:
25332533
return self._analyst_data_object_type
25342534

2535+
@property
2536+
def notes(self) -> list[MISPNote]:
2537+
return self.Note
2538+
2539+
@property
2540+
def opinions(self) -> list[MISPOpinion]:
2541+
return self.Opinion
2542+
25352543
@property
25362544
def org(self) -> MISPOrganisation:
25372545
return self.Org

0 commit comments

Comments
 (0)