From 8f6ec45085e0fc08d2d5c21503d61e17d47e7045 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Mon, 20 Jan 2025 04:24:44 +0400 Subject: [PATCH] style: blacked --- .../repositories/users/kanidm_user_repository.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index 3fd35c6..37f7f27 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -405,8 +405,12 @@ class KanidmUserRepository(AbstractUserRepository): if exclude_primary and user_type == UserDataUserOrigin.PRIMARY: continue - directmemberof = KanidmUserRepository._remove_default_groups(groups=user_attrs.get("directmemberof", [])) - memberof = KanidmUserRepository._remove_default_groups(groups=user_attrs.get("memberof", [])) + directmemberof = KanidmUserRepository._remove_default_groups( + groups=user_attrs.get("directmemberof", []) + ) + memberof = KanidmUserRepository._remove_default_groups( + groups=user_attrs.get("memberof", []) + ) filled_user = UserDataUser( username=user_attrs["name"][0], @@ -519,8 +523,12 @@ class KanidmUserRepository(AbstractUserRepository): attrs = user_data["attrs"] # type: ignore - directmemberof = KanidmUserRepository._remove_default_groups(groups=attrs.get("directmemberof", [])) - memberof = KanidmUserRepository._remove_default_groups(groups=attrs.get("memberof", [])) + directmemberof = KanidmUserRepository._remove_default_groups( + groups=attrs.get("directmemberof", []) + ) + memberof = KanidmUserRepository._remove_default_groups( + groups=attrs.get("memberof", []) + ) return UserDataUser( username=attrs["name"][0],