fix pagination

This commit is contained in:
2024-02-25 12:32:54 +03:00
parent 3d5b96c794
commit 40177720c4
2 changed files with 3 additions and 0 deletions

View File

@@ -174,4 +174,6 @@ class E621:
async def get_post_versions(self, start_id=0, page=1, limit=320) -> List[E621PostVersion]:
r = (await self.client.get('/post_versions.json', params={'search[start_id]': start_id, 'limit': limit})).json()
if 'success' in r:
return []
return [E621PostVersion.from_dict(p) for p in r]