Skip to content

Commit a5c148f

Browse files
author
Dan Cornell
committed
Fixed param->params naming issue
Added latest/ to API call (will need to be handled way more comprehensively)
1 parent 9f5afcf commit a5c148f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_utils/_vulnerabilities.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ def vulnerability_search(self, generic_vulnerabilities=None, teams=None, applica
141141
if show_closed:
142142
params['showClosed'] = show_closed
143143
if show_false_positive:
144-
param['showFalsePositive'] = show_false_positive
144+
params['showFalsePositive'] = show_false_positive
145145
if show_not_false_positive:
146-
param['showNotFalsePositive'] = show_not_false_positive
146+
params['showNotFalsePositive'] = show_not_false_positive
147147
if show_hidden:
148148
params['showHidden'] = show_hidden
149149
if show_not_hidden:
@@ -221,7 +221,7 @@ def vulnerability_search(self, generic_vulnerabilities=None, teams=None, applica
221221
params['showSharedVulnFound'] = show_shared_vuln_found
222222
if show_shared_vuln_not_found:
223223
params['showSharedVulnNotFound'] = show_shared_vuln_not_found
224-
return self._request('POST', 'rest/vulnerabilities', params)
224+
return self._request('POST', 'rest/latest/vulnerabilities', params)
225225

226226
def add_comment_to_vulnerability(self, vuln_id, comment, comment_tag_ids=None):
227227
"""
@@ -438,4 +438,4 @@ def _request(self, method, url, params=None, files=None):
438438
return ThreadFixProResponse(message='The request timed out after ' + str(self.timeout) + ' seconds.',
439439
success=False)
440440
except requests.exceptions.RequestException:
441-
return ThreadFixProResponse(message='There was an error while handling the request.', success=False)
441+
return ThreadFixProResponse(message='There was an error while handling the request.', success=False)

0 commit comments

Comments
 (0)