diff options
author | Frederick Muriuki Muriithi | 2023-09-22 10:29:18 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-09-26 03:44:33 +0300 |
commit | 196a9399d28e20c55cbb173ce4052845cfad5bf3 (patch) | |
tree | f5925740bf72d933cecc6a1493784a535d25943a /gn_auth/auth/authorisation/roles/views.py | |
parent | ac76839f1cadbbc647c9772b3fdd4d496587b400 (diff) | |
download | gn-auth-196a9399d28e20c55cbb173ce4052845cfad5bf3.tar.gz |
Update fetching a single role
Diffstat (limited to 'gn_auth/auth/authorisation/roles/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/roles/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/roles/views.py b/gn_auth/auth/authorisation/roles/views.py index 29d0991..a9b337f 100644 --- a/gn_auth/auth/authorisation/roles/views.py +++ b/gn_auth/auth/authorisation/roles/views.py @@ -23,4 +23,4 @@ def view_role(role_id: uuid.UUID) -> Response: with db.connection(db_uri) as conn: the_role = user_role(conn, the_token.user, role_id) return the_role.either( - __error__, lambda a_role: jsonify(dictify(a_role))) + __error__, lambda a_role: jsonify((dictify(a_role[0]), str(a_role[1])))) |