Skip to content

Commit c8be3aa

Browse files
committed
Add strict keyword argument to searches
1 parent 306d419 commit c8be3aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

planet/api/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def _params(self, kw):
130130
params['_page_size'] = kw['page_size']
131131
if 'sort' in kw and kw['sort']:
132132
params['_sort'] = ''.join(kw['sort'])
133+
if 'strict' in kw:
134+
# This transforms a Python boolean into a JSON boolean
135+
params['strict'] = json.dumps(kw['strict'])
133136
return params
134137

135138
def create_search(self, request):

0 commit comments

Comments
 (0)