Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Aug 3, 2023
1 parent 1e21752 commit 6e6fc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/jupyter_ai/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def get_chat_user(self) -> ChatUser:
)

login = getpass.getuser()
initials=login[0].capitalize()
initials = login[0].capitalize()

if collaborative:
chat_user_kwargs = {
# set in case IdentityProvider doesn't return initials, e.g.
# JupyterHub (#302)
"initials": initials,
**asdict(self.current_user)
**asdict(self.current_user),
}
return ChatUser(**chat_user_kwargs)

Expand Down

0 comments on commit 6e6fc1a

Please sign in to comment.