Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
fix: A missing comma breaking User.detail() functional API (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Jul 22, 2021
1 parent 160e718 commit b98e455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/173.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a missing comman that breaks `User.detail()` functional API when called without an explicit field list
2 changes: 1 addition & 1 deletion src/ai/backend/client/func/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def detail(cls, email: str = None, fields: Iterable[str] = None) -> Sequen
:param fields: Additional per-user query fields to fetch.
"""
if fields is None:
fields = ('uuid', 'username', 'email', 'need_password_change', 'status', 'status_info'
fields = ('uuid', 'username', 'email', 'need_password_change', 'status', 'status_info',
'created_at', 'domain_name', 'role')
if email is None:
query = textwrap.dedent("""\
Expand Down

0 comments on commit b98e455

Please sign in to comment.