style: blacked

This commit is contained in:
dettlaff 2025-01-20 04:24:44 +04:00
parent 74c8118f9f
commit 8f6ec45085

View file

@ -405,8 +405,12 @@ class KanidmUserRepository(AbstractUserRepository):
if exclude_primary and user_type == UserDataUserOrigin.PRIMARY: if exclude_primary and user_type == UserDataUserOrigin.PRIMARY:
continue continue
directmemberof = KanidmUserRepository._remove_default_groups(groups=user_attrs.get("directmemberof", [])) directmemberof = KanidmUserRepository._remove_default_groups(
memberof = KanidmUserRepository._remove_default_groups(groups=user_attrs.get("memberof", [])) groups=user_attrs.get("directmemberof", [])
)
memberof = KanidmUserRepository._remove_default_groups(
groups=user_attrs.get("memberof", [])
)
filled_user = UserDataUser( filled_user = UserDataUser(
username=user_attrs["name"][0], username=user_attrs["name"][0],
@ -519,8 +523,12 @@ class KanidmUserRepository(AbstractUserRepository):
attrs = user_data["attrs"] # type: ignore attrs = user_data["attrs"] # type: ignore
directmemberof = KanidmUserRepository._remove_default_groups(groups=attrs.get("directmemberof", [])) directmemberof = KanidmUserRepository._remove_default_groups(
memberof = KanidmUserRepository._remove_default_groups(groups=attrs.get("memberof", [])) groups=attrs.get("directmemberof", [])
)
memberof = KanidmUserRepository._remove_default_groups(
groups=attrs.get("memberof", [])
)
return UserDataUser( return UserDataUser(
username=attrs["name"][0], username=attrs["name"][0],