mirror of https://github.com/MISP/PyMISP
Fix PEP8
parent
f45490b02e
commit
b8205f11a8
|
@ -225,18 +225,16 @@ class PyMISP(object):
|
||||||
"""
|
"""
|
||||||
out_format = out_format.lower()
|
out_format = out_format.lower()
|
||||||
if tags:
|
if tags:
|
||||||
if isinstance(tags, list):
|
if isinstance(tags, list):
|
||||||
tags = "&&".join(tags)
|
tags = "&&".join(tags)
|
||||||
|
|
||||||
session = self.__prepare_session(out_format)
|
session = self.__prepare_session(out_format)
|
||||||
url = urljoin(self.root_url,
|
url = urljoin(self.root_url, "/events/stix/download/{}/{}/{}/{}/{}".format(
|
||||||
"/events/stix/download/{}/{}/{}/{}/{}".format(
|
event_id, with_attachments, tags, from_date, to_date))
|
||||||
event_id, with_attachments, tags, from_date, to_date
|
|
||||||
))
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print("Getting STIX event from {}".format(url))
|
print("Getting STIX event from {}".format(url))
|
||||||
return session.get(url)
|
return session.get(url)
|
||||||
|
|
||||||
def add_event(self, event, force_out=None):
|
def add_event(self, event, force_out=None):
|
||||||
"""
|
"""
|
||||||
Add a new event
|
Add a new event
|
||||||
|
|
Loading…
Reference in New Issue