Skip to content
Merged
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
4 changes: 3 additions & 1 deletion planet/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,9 @@ def download_order(self, order_id, callback=None):

order = self._get(url, models.Order).get_body()
locations = order.get_locations()
return self._get(locations, models.JSON, callback=callback)

return [self.download_location(location, callback=callback)
for location in locations]

def download_location(self, location, callback=None):
'''Download an item in an order.
Expand Down