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):
|
def get_matching_teams(team_prefix, organization):
|
||||||
query = Team.select().where(Team.name ** (team_prefix + '%'),
|
query = Team.select().where(Team.name ** (team_prefix + '%'),
|
||||||
Team.organization == organization)
|
Team.organization == organization)
|
||||||
return list(query.limit(10))
|
return query.limit(10)
|
||||||
|
|
||||||
|
|
||||||
def get_matching_users(username_prefix, organization=None):
|
def get_matching_users(username_prefix, organization=None):
|
||||||
|
|
|
@ -273,6 +273,7 @@ def get_matching_entities(prefix):
|
||||||
'kind': 'team',
|
'kind': 'team',
|
||||||
'is_org_member': True
|
'is_org_member': True
|
||||||
}
|
}
|
||||||
|
return result
|
||||||
|
|
||||||
def user_view(user):
|
def user_view(user):
|
||||||
user_json = {
|
user_json = {
|
||||||
|
|
Reference in a new issue