Skip to content

Commit

Permalink
chg: Improve Pydoc on search method's timestamp parameter
Browse files Browse the repository at this point in the history
Fix #708
  • Loading branch information
Rafiot committed Feb 26, 2021
1 parent d01c17a commit d71b094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymisp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ def search(self, controller: str = 'events', return_format: str = 'json',
:param metadata: Only the metadata (event, tags, relations) is returned, attributes and proposals are omitted.
:param uuid: Restrict the results by uuid.
:param publish_timestamp: Restrict the results by the last publish timestamp (newer than).
:param timestamp: Restrict the results by the timestamp (last edit). Any event with a timestamp newer than the given timestamp will be returned. In case you are dealing with /attributes as scope, the attribute's timestamp will be used for the lookup.
:param timestamp: Restrict the results by the timestamp (last edit). Any event with a timestamp newer than the given timestamp will be returned. In case you are dealing with /attributes as scope, the attribute's timestamp will be used for the lookup. The input can be a timestamp or a short-hand time description (7d or 24h for example). You can also pass a list with two values to set a time range (for example ["14d", "7d"]).
:param published: Set whether published or unpublished events should be returned. Do not set the parameter if you want both.
:param enforce_warninglist: Remove any attributes from the result that would cause a hit on a warninglist entry.
:param to_ids: By default all attributes are returned that match the other filter parameters, regardless of their to_ids setting. To restrict the returned data set to to_ids only attributes set this parameter to 1. 0 for the ones with to_ids set to False.
Expand Down

0 comments on commit d71b094

Please sign in to comment.