Fix entity search API to not IndexError
This commit is contained in:
parent
a3c540efcb
commit
3fd92aef35
2 changed files with 16 additions and 1 deletions
|
@ -514,7 +514,7 @@ def get_matching_users(username_prefix, robot_namespace=None, organization=None,
|
|||
direct_user_query = (direct_user_query | (robot_search & (User.robot == True)))
|
||||
|
||||
query = (User
|
||||
.select(User.username, User.email, User.robot)
|
||||
.select(User.id, User.username, User.email, User.robot)
|
||||
.group_by(User.username, User.email, User.robot)
|
||||
.where(direct_user_query))
|
||||
|
||||
|
|
Reference in a new issue