Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions planet/cli/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ async def list(ctx, state, limit, pretty):

This command prints a sequence of the returned order descriptions,
optionally pretty-printed.

Order descriptions are sorted by creation date with the last created order
returned first.
'''
async with orders_client(ctx) as cl:
async for o in cl.list_orders(state=state, limit=limit):
Expand Down
5 changes: 4 additions & 1 deletion planet/clients/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,10 @@ async def wait(self,
async def list_orders(self,
state: Optional[str] = None,
limit: int = 100) -> AsyncIterator[dict]:
"""Iterate over the list of stored order requests.
"""Iterate over the list of stored orders.

Order descriptions are sorted by creation date with the last created
order returned first.

Note:
The name of this method is based on the API's method name. This
Expand Down