Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
am6010 committed Oct 3, 2024
1 parent 1d1f58e commit c97dbcc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def read_records(

for coupon in coupons:
try:
page = self._client.list_unique_coupon_codes(params=params, coupon_id=coupon.id).pages()
for item in page:
pages = self._client.list_unique_coupon_codes(params=params, coupon_id=coupon.id).pages()
for item in pages:
yield self._item_to_dict(item)
# slow down the API calls to avoid rate limiting
time.sleep(RATE_LIMIT_SLEEP_IN_SECS)
Expand Down

0 comments on commit c97dbcc

Please sign in to comment.