Search didnt works

This commit is contained in:
Gregory Soutade 2016-06-14 11:07:33 +02:00
parent abcde9da12
commit 38be8017a0

View File

@ -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)