Skip to content

Commit dd17c58

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycsw/stac/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def collections(self, headers_, args):
237237
if v not in [None, '']:
238238
query_args.append(build_anytext('anytext', v))
239239

240-
limit = int(args.get('limit', self.config['server']['maxrecords']))
240+
limit = int(args.get('limit', self.config['server'].get('maxrecords', 10)))
241241

242242
if query_args:
243243
ast = parse_ecql(' AND '.join(query_args))

0 commit comments

Comments
 (0)