Skip to content

Commit d901041

Browse files
author
Phil Varner
committed
cleanup
1 parent 159a8b7 commit d901041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ def apply_stacql_filter(search: Search, op: str, field: str, value: float):
180180
return search
181181

182182
@staticmethod
183-
def populate_sort(sortby) -> Optional[Dict[str, Dict[str, str]]]:
183+
def populate_sort(sortby: List) -> Optional[Dict[str, Dict[str, str]]]:
184184
"""Database logic to sort search instance."""
185-
if len(sortby) > 0:
185+
if sortby:
186186
return {s.field: {"order": s.direction} for s in sortby}
187187
else:
188188
return None

0 commit comments

Comments
 (0)