From b146cac36aea12eb774205eade124980af48c1d5 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 30 Jul 2025 12:04:11 -0500 Subject: Call the correct function. --- gn_auth/auth/authorisation/resources/groups/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/resources/groups/models.py') 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] -- cgit 1.4.1