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():
|
for word in title.split():
|
||||||
if word.lower().startswith(q):
|
if word.lower().startswith(q):
|
||||||
intermediate.append((normalized, item))
|
intermediate.append((normalized, item))
|
||||||
continue
|
break
|
||||||
other.append((normalized, item))
|
else:
|
||||||
|
other.append((normalized, item))
|
||||||
|
|
||||||
startswith.sort()
|
startswith.sort()
|
||||||
intermediate.sort()
|
intermediate.sort()
|
||||||
|
|
Reference in New Issue