From 7ea50075e473a81805c1989b2179c8ca8e79c859 Mon Sep 17 00:00:00 2001 From: Dawid Czarnecki Date: Wed, 28 Nov 2018 10:05:26 +0100 Subject: [PATCH] chg: Include proposals in attributes search Add includeProposals param to the search method --- pymisp/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index 80310b8..4e0f8a5 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1148,6 +1148,7 @@ class PyMISP(object): :param to_ids: return only the attributes with the to_ids flag set :param deleted: also return the deleted attributes :param event_timestamp: the timestamp of the last modification of the event (attributes controller only)). Can be a list (from->to) + :param includeProposals: return shadow attributes if True :param async_callback: The function to run when results are returned """ query = {} @@ -1203,6 +1204,7 @@ class PyMISP(object): query['metadata'] = kwargs.pop('metadata', None) if controller == 'attributes': query['event_timestamp'] = kwargs.pop('event_timestamp', None) + query['includeProposals'] = kwargs.pop('includeProposals', None) # Cleanup query = {k: v for k, v in query.items() if v is not None}