From 001984cd8c96d62c379cbe73477b6381a6c587c1 Mon Sep 17 00:00:00 2001 From: margaretseedcx <36738445+margaretseedcx@users.noreply.github.com> Date: Mon, 9 Jul 2018 11:51:50 -0500 Subject: [PATCH] Add similarity_threshold to Watchlist search --- blockscore/api/watchlists.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blockscore/api/watchlists.py b/blockscore/api/watchlists.py index ae26072..1a3a132 100644 --- a/blockscore/api/watchlists.py +++ b/blockscore/api/watchlists.py @@ -53,9 +53,10 @@ def list(self, count=None, offset=None): } return self.client.get(WATCHLISTS_CANDIDATE_URI, body) - def search(self, watchlists_candidate_id, match_type=None): + def search(self, watchlists_candidate_id, match_type=None, similarity_threshold=None): body = { 'candidate_id': watchlists_candidate_id, - 'match_type': match_type + 'match_type': match_type, + 'similarity_threshold': similarity_threshold } return self.client.post(WATCHLISTS_SEARCH_URI, body)