From b9e04ad79e0039edba25d58f8bc03e4d2a17583b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 7 Mar 2024 16:15:40 +0300 Subject: fix bugs. --- gn2/wqflask/oauth2/groups.py | 2 +- gn2/wqflask/oauth2/resources.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gn2/wqflask/oauth2') diff --git a/gn2/wqflask/oauth2/groups.py b/gn2/wqflask/oauth2/groups.py index fd5ab7eb..3223b932 100644 --- a/gn2/wqflask/oauth2/groups.py +++ b/gn2/wqflask/oauth2/groups.py @@ -141,7 +141,7 @@ def reject_join_request(): @require_oauth2 def group_role(group_role_id: uuid.UUID): """View the details of a particular role.""" - def __render_error(**kwargs): + def __render_error__(**kwargs): return render_ui("oauth2/view-group-role.html", **kwargs) def __gprivs_success__(role, group_privileges): diff --git a/gn2/wqflask/oauth2/resources.py b/gn2/wqflask/oauth2/resources.py index 7d20b859..b8ca21fb 100644 --- a/gn2/wqflask/oauth2/resources.py +++ b/gn2/wqflask/oauth2/resources.py @@ -82,7 +82,7 @@ def view_resource(resource_id: uuid.UUID): "oauth2/view-resource.html", resource=resource, unlinked_data=unlinked_data, users_n_roles=users_n_roles, this_user=this_user, group_roles=group_roles, - users_error=process_error(err)), + users_error=process_error(err), count_per_page=count_per_page), lambda users: __users_success__( resource, unlinked_data, users_n_roles, this_user, group_roles, users)) -- cgit v1.2.3