about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-30 12:04:11 -0500
committerFrederick Muriuki Muriithi2025-07-30 12:54:53 -0500
commitb146cac36aea12eb774205eade124980af48c1d5 (patch)
treeede4b3c74bac0fabc21b4309bdf829f126468279
parent9b553cc0f4124336d6657a77ae8b3c094c104ffb (diff)
downloadgn-auth-b146cac36aea12eb774205eade124980af48c1d5.tar.gz
Call the correct function.
-rw-r--r--gn_auth/auth/authorisation/resources/groups/models.py2
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]