Skip to content

Commit 755be2c

Browse files
authored
STAC: fix collection search (#1073)
1 parent cc3eb23 commit 755be2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycsw/ogc/api/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def items(self, headers_, json_post_data, args, collection='metadata:main'):
595595
ids = ','.join(f'"{x}"' for x in v.split(','))
596596
query_args.append(f"identifier IN ({ids})")
597597
elif k == 'collections':
598-
if isinstance(collections, str):
598+
if isinstance(v, str):
599599
collections = ','.join(f'"{x}"' for x in v.split(','))
600600
else:
601601
collections = ','.join(f'"{x}"' for x in v)

0 commit comments

Comments
 (0)