Skip to content

Commit 7c2a416

Browse files
Merge pull request #210 from madatx/fix-client-download_order
Download order locations one by one
2 parents 8035556 + b145e84 commit 7c2a416

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
@@ -564,7 +564,9 @@ def download_order(self, order_id, callback=None):
564564

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

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

0 commit comments

Comments
 (0)