diff options
author | Frederick Muriuki Muriithi | 2025-07-30 12:04:11 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-30 12:54:53 -0500 |
commit | b146cac36aea12eb774205eade124980af48c1d5 (patch) | |
tree | ede4b3c74bac0fabc21b4309bdf829f126468279 | |
parent | 9b553cc0f4124336d6657a77ae8b3c094c104ffb (diff) | |
download | gn-auth-b146cac36aea12eb774205eade124980af48c1d5.tar.gz |
Call the correct function.
-rw-r--r-- | gn_auth/auth/authorisation/resources/groups/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/models.py b/gn_auth/auth/authorisation/resources/groups/models.py index f5f0195..18210e3 100644 --- a/gn_auth/auth/authorisation/resources/groups/models.py +++ b/gn_auth/auth/authorisation/resources/groups/models.py @@ -330,7 +330,7 @@ def resource_from_group(conn: db.DbConnection, the_group: Group) -> Resource: "ON resources.resource_category_id=resource_categories.resource_category_id " "WHERE group_resources.group_id=?", (str(the_group.group_id),)) - results = db_rows_to_roles(cursor.fetchall()) + results = tuple(resource_from_dbrow(row) for row in cursor.fetchall()) assert len(results) == 1, "Expected a single group resource." return results[0] |