Remove old search API which is no longer in use
This commit is contained in:
parent
86584abba5
commit
1887dc879c
5 changed files with 5 additions and 160 deletions
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue