Skip to content

Conversation

@LucasQR
Copy link
Collaborator

@LucasQR LucasQR commented Oct 14, 2025

Fixes #56

This should fix the error of crud_obj.count receiving a _GeneratorContextManager instead of an Asyncsession as a db by switching:

total_count = await crud_obj.count(self.db_config.admin_session)

to

total_count = await crud_obj.count(admin_db)

And making some other similar fixes on get_base_context

@LucasQR LucasQR added the bug Something isn't working label Oct 14, 2025
@LucasQR
Copy link
Collaborator Author

LucasQR commented Oct 14, 2025

@mysorcerer2002 would you like to review this pr? since you're the one who first saw this bug and i couldn't properly replicate it

@LucasQR LucasQR requested a review from igorbenav October 14, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: '_GeneratorContextManager' object has no attribute 'scalar'

2 participants