Skip to content

Commit b145e84

Browse files
committed
Download order locations one by one
1 parent 863d48c commit b145e84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

planet/api/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,9 @@ def download_order(self, order_id, callback=None):
565565

566566
order = self._get(url, models.Order).get_body()
567567
locations = order.get_locations()
568-
return self._get(locations, models.JSON, callback=callback)
568+
569+
return [self.download_location(location, callback=callback)
570+
for location in locations]
569571

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

0 commit comments

Comments
 (0)