Skip to content

Commit

Permalink
Merge pull request #1055 from planetlabs/steve/issue-1054
Browse files Browse the repository at this point in the history
fix async search example in docs
  • Loading branch information
stephenhillier authored Sep 19, 2024
2 parents 0a14934 + 9284a5f commit 32f826d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/get-started/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def do_search():
date_filter = filters.date_range_filter('acquired', gte=datetime.fromisoformat("2022-11-18"), lte=datetime.fromisoformat("2022-11-21"))
cloud_filter = filters.range_filter('cloud_cover', lte=0.1)
download_filter = filters.permission_filter()
return [item async for item in client.search(["PSScene"], filters.and_filter([date_filter, cloud_filter, download_filter]))]
return [item async for item in client.search(["PSScene"], filters.and_filter([date_filter, cloud_filter, download_filter]))]

items = asyncio.run(do_search())
```
Expand Down Expand Up @@ -94,4 +94,4 @@ async with Session() as session:

The Orders API capabilities in V1 were quite primitive, but those that did exist have been retained in much the same form; `ClientV1().create_order` becomes `OrdersClient(session).create_order`. (As with the `DataClient`, you must also use `async` and `Session` with `OrdersClient`.)

Additionally, there is now also an order builder in `planet.order_request`, similar to the preexisting search filter builder. For more details on this, refer to the [Creating an Order](../../python/sdk-guide/#creating-an-order).
Additionally, there is now also an order builder in `planet.order_request`, similar to the preexisting search filter builder. For more details on this, refer to the [Creating an Order](../../python/sdk-guide/#create-an-order).

0 comments on commit 32f826d

Please sign in to comment.