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
main
Christian Studer 2024-12-24 09:55:07 +01:00
parent ea8fd62c41
commit 614d2e0ca1
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 8 additions and 0 deletions

View File

@ -2532,6 +2532,14 @@ class MISPAnalystData(AbstractMISP):
def analyst_data_object_type(self) -> str:
return self._analyst_data_object_type
@property
def notes(self) -> list[MISPNote]:
return self.Note
@property
def opinions(self) -> list[MISPOpinion]:
return self.Opinion
@property
def org(self) -> MISPOrganisation:
return self.Org