Skip to content

Commit

Permalink
STAC: fix collection search
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jan 25, 2025
1 parent cc3eb23 commit b50072b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycsw/ogc/api/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def items(self, headers_, json_post_data, args, collection='metadata:main'):
ids = ','.join(f'"{x}"' for x in v.split(','))
query_args.append(f"identifier IN ({ids})")
elif k == 'collections':
if isinstance(collections, str):
if isinstance(v, str):
collections = ','.join(f'"{x}"' for x in v.split(','))
else:
collections = ','.join(f'"{x}"' for x in v)
Expand Down

0 comments on commit b50072b

Please sign in to comment.