Search didnt works
This commit is contained in:
parent
abcde9da12
commit
38be8017a0
|
@ -124,10 +124,7 @@ class Search:
|
|||
hashtable[word][1] = weight + word_weight
|
||||
|
||||
def _index(self, hashtable, index):
|
||||
try:
|
||||
note = Note.objects.get(pk=index)
|
||||
except:
|
||||
return
|
||||
note = models.Note.objects.get(pk=index)
|
||||
|
||||
self._indexContent(hashtable, index, note.text, 1)
|
||||
self._indexContent(hashtable, index, note.title.encode('utf-8'), 5)
|
||||
|
|
Loading…
Reference in New Issue
Block a user