Remove old search API which is no longer in use

This commit is contained in:
Joseph Schorr 2016-02-10 15:02:27 +02:00
parent 86584abba5
commit 1887dc879c
5 changed files with 5 additions and 160 deletions

View file

@ -181,12 +181,6 @@ def get_matching_admined_teams(team_prefix, user_obj, limit=10):
return query
def get_matching_teams(team_prefix, organization):
team_prefix_search = _basequery.prefix_search(Team.name, team_prefix)
query = Team.select().where(team_prefix_search, Team.organization == organization)
return query.limit(10)
def get_teams_within_org(organization):
return Team.select().where(Team.organization == organization)