Check for term in title
This commit is contained in:
parent
d6cc81278f
commit
550c6f6acc
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -57,7 +57,7 @@ def complete(q: str):
|
|||
for term in terms:
|
||||
page = tiny_index.retrieve(term)
|
||||
if page is not None:
|
||||
pages += page
|
||||
pages += [(title, url) for title, url in page if term in title.lower()]
|
||||
|
||||
ordered_results = order_results(q, pages)
|
||||
results = [title.replace("\n", "") + ' — ' +
|
||||
|
|
Loading…
Add table
Reference in a new issue