Skip to content

Commit

Permalink
handle paging in DataGranules.load method
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Dec 14, 2024
1 parent 6c90e10 commit b0c5cd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions earthaccess/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,9 @@ def doi(self, doi: str) -> Self:
return self

def load(self, count: int = -1):
# TODO - Handle paging (get all)
self.granules = self.get(count)
if count > 0:
self.granules = self.get(count)
self.granules = self.get_all()

@property
def granules(self) -> list:
Expand Down

0 comments on commit b0c5cd0

Please sign in to comment.