Skip to content

Commit 2cfaafa

Browse files
committed
test end time
1 parent fe9eaf1 commit 2cfaafa

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
@@ -663,7 +663,8 @@ def items(self, headers_, json_post_data, args, collection='metadata:main'):
663663
query_args.append(f'"properties.datetime" >= "{begin}"')
664664
#query_args.append(f'time_begin >= "{begin}"')
665665
if end != '..':
666-
query_args.append(f'time_end <= "{end}"')
666+
#query_args.append(f'time_end <= "{end}"')
667+
query_args.append(f'"properties.datetime" <= "{end}"')
667668
elif k == 'q':
668669
if v not in [None, '']:
669670
query_args.append(build_anytext('anytext', v, self.repository))

0 commit comments

Comments
 (0)