mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Fix bug due to typo in async pagination of entitlements loop
This commit is contained in:
@@ -2955,7 +2955,7 @@ class Client:
|
|||||||
data, state, limit = await strategy(retrieve, state, limit)
|
data, state, limit = await strategy(retrieve, state, limit)
|
||||||
|
|
||||||
# Terminate loop on next iteration; there's no data left after this
|
# Terminate loop on next iteration; there's no data left after this
|
||||||
if len(data) < 1000:
|
if len(data) < 100:
|
||||||
limit = 0
|
limit = 0
|
||||||
|
|
||||||
for e in data:
|
for e in data:
|
||||||
|
@@ -239,7 +239,7 @@ class SKU:
|
|||||||
data, state, limit = await strategy(retrieve, state, limit)
|
data, state, limit = await strategy(retrieve, state, limit)
|
||||||
|
|
||||||
# Terminate loop on next iteration; there's no data left after this
|
# Terminate loop on next iteration; there's no data left after this
|
||||||
if len(data) < 1000:
|
if len(data) < 100:
|
||||||
limit = 0
|
limit = 0
|
||||||
|
|
||||||
for e in data:
|
for e in data:
|
||||||
|
Reference in New Issue
Block a user