Merge pull request #210 from mlodic/master

added change_analysis_status API
pull/215/head
Raphaël Vinot 2018-03-27 10:04:02 +02:00 committed by GitHub
commit 0a4860b481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -418,6 +418,12 @@ class PyMISP(object):
e.threat_level_id = threat_level_id
return self.update(e)
def change_analysis_status(self, event, analysis_status):
"""Change the analysis status of an event"""
e = self._make_mispevent(event)
e.analysis = analysis_status
return self.update(e)
def change_sharing_group(self, event, sharing_group_id):
"""Change the sharing group of an event"""
e = self._make_mispevent(event)