From 61193b405645995a675547bbd19594ad5bdae161 Mon Sep 17 00:00:00 2001 From: Phil Varner Date: Thu, 9 Mar 2023 14:47:04 -0500 Subject: [PATCH] Fix STAC API Query Extension operator names from ne->neq, le->lte, and ge->gte, fix operations mappings --- stac_pydantic/api/extensions/query.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stac_pydantic/api/extensions/query.py b/stac_pydantic/api/extensions/query.py index 880cade..2f637b2 100644 --- a/stac_pydantic/api/extensions/query.py +++ b/stac_pydantic/api/extensions/query.py @@ -10,10 +10,10 @@ _OPERATIONS = { "eq": lambda x, y: x == y, "neq": lambda x, y: x != y, - "lte": lambda x, y: x < y, - "le": lambda x, y: x <= y, - "gte": lambda x, y: x > y, - "ge": lambda x, y: x >= y, + "lt": lambda x, y: x < y, + "lte": lambda x, y: x <= y, + "gt": lambda x, y: x > y, + "gte": lambda x, y: x >= y, "startsWith": lambda x, y: x.startsWith(y), "endsWith": lambda x, y: x.endsWith(y), "contains": lambda x, y: y in x,