From 5afdcb57099c9ed60ba1b62d83f30fd9d2d76965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 7 Feb 2019 16:25:45 +0100 Subject: [PATCH] fix: Wrong documentation on PyMISP.search_sightings Fix #336 --- pymisp/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymisp/api.py b/pymisp/api.py index c477c54..2d103a8 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1545,11 +1545,11 @@ class PyMISP(object): :Example: - >>> misp.search_sightings({'publish_timestamp': '30d'}) # search sightings for the last 30 days on the instance + >>> misp.search_sightings(**{'publish_timestamp': '30d'}) # search sightings for the last 30 days on the instance [ ... ] - >>> misp.search_sightings('attribute', {'id': 6, 'include_attribute': 1}) # return list of sighting for attribute 6 along with the attribute itself + >>> misp.search_sightings('attribute', context_id=6, include_attribute=1) # return list of sighting for attribute 6 along with the attribute itself [ ... ] - >>> misp.search_sightings('event', {'id': 17, 'include_event': 1, 'org_id': 2}) # return list of sighting for event 17 filtered with org id 2 + >>> misp.search_sightings('event', **{'context_id': 17, 'include_event': 1, 'org_id': 2}) # return list of sighting for event 17 filtered with org id 2 """ if context not in ['', 'attribute', 'event']: raise Exception('Context parameter must be empty, "attribute" or "event"')