Add count of times word appears on a site to index.

This commit is contained in:
rmgr 2023-11-30 08:03:43 +10:30
parent f36ab2fbfb
commit d30397cefa
3 changed files with 12 additions and 3 deletions

View file

@ -18,6 +18,7 @@ def search(query):
q = q.lower()
if q in index:
result.append(index[q])
# result.sort(reverse= True,key=lambda entry: int(entry.count))
print(result)
return result