do not duplicate matching terms in end list (#2975)

This commit is contained in:
Frédéric Péters 2013-08-22 10:22:24 +02:00
parent 83770551bb
commit f79fe1838e
1 changed files with 3 additions and 2 deletions

View File

@ -139,8 +139,9 @@ class ListKeywordsView(BrowserView):
for word in title.split():
if word.lower().startswith(q):
intermediate.append((normalized, item))
continue
other.append((normalized, item))
break
else:
other.append((normalized, item))
startswith.sort()
intermediate.sort()