fix: Add setter for Attribute in MISPEvent

pull/160/head
Raphaël Vinot 2017-12-21 09:38:41 +01:00
parent 9c4e98f025
commit 749acd70b5
1 changed files with 4 additions and 0 deletions

View File

@ -584,6 +584,10 @@ class MISPEvent(AbstractMISP):
def attributes(self):
return self.Attribute
@attributes.setter
def attributes(self, attributes):
self.Attribute = attributes
@property
def related_events(self):
return self.RelatedEvent