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