Skip to content

Commit

Permalink
🚨 Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Oct 23, 2024
1 parent 15c7641 commit 62d8b6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apricot/oauth/keycloak_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ def users(self: Self) -> list[JSONDict]:
attributes["cn"] = username
attributes["description"] = ""
attributes["displayName"] = full_name
attributes["domain"] = user_dict["attributes"].get(self.domain_attribute, [None])[0]
attributes["domain"] = user_dict["attributes"].get(
self.domain_attribute,
[None],
)[0]
attributes["gidNumber"] = user_dict["attributes"]["uid"][0]
attributes["givenName"] = first_name or ""
attributes["homeDirectory"] = f"/home/{username}" if username else None
Expand Down

0 comments on commit 62d8b6f

Please sign in to comment.