Fix the team results for the entities query.
This commit is contained in:
parent
393534bfb4
commit
5fe1a6806e
2 changed files with 2 additions and 1 deletions
|
@ -299,7 +299,7 @@ def get_user(username):
|
|||
def get_matching_teams(team_prefix, organization):
|
||||
query = Team.select().where(Team.name ** (team_prefix + '%'),
|
||||
Team.organization == organization)
|
||||
return list(query.limit(10))
|
||||
return query.limit(10)
|
||||
|
||||
|
||||
def get_matching_users(username_prefix, organization=None):
|
||||
|
|
|
@ -273,6 +273,7 @@ def get_matching_entities(prefix):
|
|||
'kind': 'team',
|
||||
'is_org_member': True
|
||||
}
|
||||
return result
|
||||
|
||||
def user_view(user):
|
||||
user_json = {
|
||||
|
|
Reference in a new issue