Skip to content

Commit

Permalink
Fix STAC API Query Extension operator names from ne->neq, le->lte, an…
Browse files Browse the repository at this point in the history
…d ge->gte, fix operations mappings
  • Loading branch information
Phil Varner committed Mar 9, 2023
1 parent 15a2a8a commit 61193b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stac_pydantic/api/extensions/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 61193b4

Please sign in to comment.