Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts on pools max out at 75 posts. #5

Open
N8Deathrider opened this issue Mar 25, 2024 · 0 comments
Open

Posts on pools max out at 75 posts. #5

N8Deathrider opened this issue Mar 25, 2024 · 0 comments

Comments

@N8Deathrider
Copy link
Contributor

return self.e621api.posts.search(tags=f"id:{','.join(map(str, self.post_ids))}")

I'm not sure why this isn't set up as:

class _PostsGetterMixin:
    @cached_property
    def posts(self: _HasPostIdsAndE621API) -> List[Post]:
        return self.e621api.posts.search(
            tags=f"id:{','.join(map(str, self.post_ids))}",
            ignore_pagination=True,
            limit=len(self.post_ids),
        )

Which seems to max out at 100 posts but even simpler would be:

class _PostsGetterMixin:
    @cached_property
    def posts(self: _HasPostIdsAndE621API) -> List[Post]:
        return self.e621api.posts.get(self.post_ids)

Which but even this still maxes out at 100 posts.

The pool I'm using as a test has 297 posts at this moment.

@N8Deathrider N8Deathrider changed the title E621.Pools.posts maxes out at 75 posts. Posts on pools max out at 75 posts. Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant