Skip to content

Commit

Permalink
another fix to job listing
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jt79 committed Jun 2, 2021
1 parent 2ff25c8 commit f2faa08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyepic/client/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def list(self, limit=10):
if count < limit:
while results.next is not None:
offset += get_batch_size
if offset >= limit:
return
results = instance.job_list(limit=get_batch_size, offset=offset)
for result in results.results:
if count >= limit:
Expand Down

0 comments on commit f2faa08

Please sign in to comment.