Fix the team results for the entities query.

This commit is contained in:
yackob03 2013-11-07 23:35:20 -05:00
parent 393534bfb4
commit 5fe1a6806e
2 changed files with 2 additions and 1 deletions

View file

@ -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):

View file

@ -273,6 +273,7 @@ def get_matching_entities(prefix):
'kind': 'team',
'is_org_member': True
}
return result
def user_view(user):
user_json = {