mirror of https://github.com/MISP/PyMISP
parent
f731b88fde
commit
5fea22600e
|
@ -256,6 +256,14 @@ class PyMISP(object):
|
||||||
response = self.add_event(data)
|
response = self.add_event(data)
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
|
def publish(self, event):
|
||||||
|
if event['Event']['published']:
|
||||||
|
return {'message': 'Already published'}
|
||||||
|
event = self._prepare_update(event)
|
||||||
|
event['Event']['published'] = True
|
||||||
|
response = self.update_event(event['Event']['id'], event)
|
||||||
|
return response.json()
|
||||||
|
|
||||||
# ##### File attributes #####
|
# ##### File attributes #####
|
||||||
|
|
||||||
def _send_attributes(self, event, attributes):
|
def _send_attributes(self, event, attributes):
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -4,7 +4,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pymisp',
|
name='pymisp',
|
||||||
version='1.8.2',
|
version='1.9',
|
||||||
author='Raphaël Vinot',
|
author='Raphaël Vinot',
|
||||||
author_email='raphael.vinot@circl.lu',
|
author_email='raphael.vinot@circl.lu',
|
||||||
maintainer='Raphaël Vinot',
|
maintainer='Raphaël Vinot',
|
||||||
|
|
Loading…
Reference in New Issue