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

scalars() in SelectPagination #1209

Closed
AdamVerner opened this issue May 25, 2023 · 2 comments
Closed

scalars() in SelectPagination #1209

AdamVerner opened this issue May 25, 2023 · 2 comments

Comments

@AdamVerner
Copy link

return list(session.execute(select).unique().scalars())

Hi, is there any specific reason why the .scalars() call is in the pagination? I'm trying to query two objects at the same time and cannot do so, because the pagination will only return the first one.
Is that call there necessary? If no, could it be removed?

@AdamVerner
Copy link
Author

AdamVerner commented May 25, 2023

Same goes for the unique, it differs from the functionality of the old Paginate class with that statement.

@davidism
Copy link
Member

Duplicate of #1168

@davidism davidism marked this as a duplicate of #1168 May 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants