mirror of https://github.com/MISP/PyMISP
parent
ada955a9e6
commit
bc8a397752
|
@ -468,6 +468,12 @@ class PyMISP(object):
|
||||||
e.analysis = analysis_status
|
e.analysis = analysis_status
|
||||||
return self.update(e)
|
return self.update(e)
|
||||||
|
|
||||||
|
def change_distribution(self, event, distribution):
|
||||||
|
"""Change the distribution of an event"""
|
||||||
|
e = self._make_mispevent(event)
|
||||||
|
e.distribution = distribution
|
||||||
|
return self.update(e)
|
||||||
|
|
||||||
def change_sharing_group(self, event, sharing_group_id):
|
def change_sharing_group(self, event, sharing_group_id):
|
||||||
"""Change the sharing group of an event"""
|
"""Change the sharing group of an event"""
|
||||||
e = self._make_mispevent(event)
|
e = self._make_mispevent(event)
|
||||||
|
|
Loading…
Reference in New Issue