Skip to content

Commit e9c104a

Browse files
authored
safeguard fix for maxrecords handling (#1123)
1 parent eedfcb8 commit e9c104a

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
@@ -354,7 +354,7 @@ def collections(self, headers_, args):
354354
collections.append(collection_info)
355355

356356
LOGGER.debug('Generating virtual collections')
357-
limit = int(args.get('limit', self.config['server']['maxrecords']))
357+
limit = int(args.get('limit', self.config['server'].get('maxrecords', 10)))
358358
virtual_collections = self.repository.query_collections(limit=limit)
359359

360360
for virtual_collection in virtual_collections:

0 commit comments

Comments
 (0)