Dénote

Dénote Commit Details

Date:2016-06-14 11:07:33 (3 years 12 days ago)
Author:Grégory Soutadé
Branch:master
Commit:38be8017a0ec71133b7cbfc6d421d348692b697f
Parents: abcde9da1226485c87fa3123509db80d84103151
Message:Search didnt works

Changes:
Mdenote/search.py (1 diff)

File differences

denote/search.py
124124
125125
126126
127
128
129
130
127
131128
132129
133130
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)

Archive Download the corresponding diff file

Branches

Tags