Skip to content

Commit f8fe9f9

Browse files
committed
Split fields coming from CLI
1 parent 9280bea commit f8fe9f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pystac_client/item_search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ def __init__(
159159

160160
self.method = method
161161
self.modifier = modifier
162-
163162
params = {
164163
"limit": limit,
165164
"bbox": self._format_bbox(bbox),
@@ -482,6 +481,8 @@ def _format_fields(self, value: FieldsLike | None) -> Fields | None:
482481
if isinstance(value, str):
483482
return self._fields_to_dict(value.split(","))
484483
if isinstance(value, list):
484+
if len(value) == 1:
485+
return self._fields_to_dict(value[0].split(","))
485486
return self._fields_to_dict(value)
486487
if isinstance(value, dict):
487488
return value

0 commit comments

Comments
 (0)