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

Revert db.session.query #1846

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

seeker25
Copy link
Collaborator

@seeker25 seeker25 commented Dec 3, 2024

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

@@ -319,9 +319,7 @@ def search_purchase_history( # noqa:E501; pylint:disable=too-many-arguments, to
if not return_all:
count_future = executor.submit(cls.get_count, auth_account_id, search_filter)
sub_query = cls.generate_subquery(auth_account_id, search_filter, limit, page)
# Need to do it this way otherwise doesn't know how to join for the subquery for some reason.
invoice_ids = {item for t in sub_query.all() for item in t}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work with > 65535 rows

@seeker25 seeker25 merged commit f0b449a into bcgov:main Dec 3, 2024
16 checks passed
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

Successfully merging this pull request may close these issues.

2 participants