add list: correct typo in search field name

This commit is contained in:
Drew DeVault 2020-03-31 16:09:47 -04:00
parent a005c28fdf
commit 57719e8391
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ def mailing_lists_new_POST(owner, project_name):
list_name = field[len("existing-"):]
break
if not list_name:
search = valid.optional("searc")
search = valid.optional("search")
mls = lists.get_list(owner)
# TODO: Search properly
mls = filter(lambda r: search.lower() in r["name"].lower(), mls)