Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d207854

Browse files
authoredNov 6, 2022
check json_post_data!none when sending ?q= (#800)
1 parent 90d70c0 commit d207854

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎pycsw/ogc/api/records.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ def items(self, headers_, json_post_data, args, collection='metadata:main',
569569
if end != '..':
570570
query_args.append(f'time_end <= "{end}"')
571571
elif k == 'q':
572-
query_args.append(build_anytext('anytext', v))
572+
if v not in [None,'']:
573+
query_args.append(build_anytext('anytext', v))
573574
else:
574575
query_args.append(f'{k} = "{v}"')
575576

0 commit comments

Comments
 (0)
Please sign in to comment.