do not duplicate matching terms in end list (#2975)
This commit is contained in:
parent
83770551bb
commit
f79fe1838e
|
@ -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()
|
||||
|
|
Reference in New Issue