Skip to content

Commit

Permalink
support empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfisher-geo committed Nov 24, 2024
1 parent 059da7e commit cc16b4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def indices(collection_ids: Optional[List[str]]) -> str:
Returns:
A string of comma-separated index names. If `collection_ids` is None, returns the default indices.
"""
if collection_ids is None:
if collection_ids is None or collection_ids == []:
return ITEM_INDICES
else:
return ",".join([index_by_collection_id(c) for c in collection_ids])
Expand Down

0 comments on commit cc16b4a

Please sign in to comment.