fix: Typo in set_sightings

Fix #161
pull/160/merge
Raphaël Vinot 2017-12-27 14:25:06 +01:00
parent 4708786959
commit 8013e90e40
1 changed files with 1 additions and 1 deletions

View File

@ -1301,7 +1301,7 @@ class PyMISP(object):
sightings = [sightings]
for sighting in sightings:
if isinstance(sighting, MISPSighting):
to_post.appent(sighting.to_json())
to_post.append(sighting.to_json())
elif isinstance(sighting, dict):
to_post.append(json.dumps(sightings))
url = urljoin(self.root_url, 'sightings/add/')