Skip to content

Fix admin crud row error - #27

Closed
zZedix wants to merge 3 commits into
PasarGuard:nextfrom
zZedix:fix-admin-crud-row-error
Closed

Fix admin crud row error#27
zZedix wants to merge 3 commits into
PasarGuard:nextfrom
zZedix:fix-admin-crud-row-error

Conversation

@zZedix

@zZedix zZedix commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

Both get_admin_by_id and get_admin_by_discord_id were using Result.first(), which returns a plain SQLAlchemy Row object.
Passing that row into load_admin_attrs caused an AttributeError ('Row' object has no attribute 'awaitable_attrs').
This update changes those functions to return proper ORM instances, fixing the error and making the admin lookup helpers usable again

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