[inkbunny] stop pagination on empty results
This commit is contained in:
@@ -324,6 +324,9 @@ class InkbunnyAPI():
|
||||
|
||||
while True:
|
||||
data = self._call("search", params)
|
||||
if not data["submissions"]:
|
||||
return
|
||||
|
||||
yield from self.detail(data["submissions"])
|
||||
|
||||
if data["page"] >= data["pages_count"]:
|
||||
|
||||
Reference in New Issue
Block a user