From 38be8017a0ec71133b7cbfc6d421d348692b697f Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Tue, 14 Jun 2016 11:07:33 +0200 Subject: [PATCH] Search didnt works --- denote/search.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/denote/search.py b/denote/search.py index d48cf67..c2cc627 100755 --- a/denote/search.py +++ b/denote/search.py @@ -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)