mirror of https://github.com/MISP/PyMISP
Merge branch 'master' of github.com:CIRCL/PyMISP
commit
becaecaec8
|
@ -417,7 +417,7 @@ class PyMISP(object):
|
||||||
else:
|
else:
|
||||||
session = self.__prepare_session()
|
session = self.__prepare_session()
|
||||||
url = urljoin(self.root_url, 'attributes/add/{}'.format(eventID_to_update))
|
url = urljoin(self.root_url, 'attributes/add/{}'.format(eventID_to_update))
|
||||||
response = session.post(url, data=json.dumps(a, cls=EncodeUpdate))
|
response = self._check_response(session.post(url, data=json.dumps(a, cls=EncodeUpdate)))
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def add_named_attribute(self, event, type_value, value, category=None, to_ids=False, comment=None, distribution=None, proposal=False, **kwargs):
|
def add_named_attribute(self, event, type_value, value, category=None, to_ids=False, comment=None, distribution=None, proposal=False, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue