avoid words that would be None when indexing
This commit is contained in:
parent
101c84d801
commit
c1da50265a
|
@ -74,7 +74,7 @@ class DmsKeyword(Item):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
words.append(keyword.get_words_for_indexation(limit=limit-1))
|
words.append(keyword.get_words_for_indexation(limit=limit-1))
|
||||||
return ' '.join(words)
|
return ' '.join([x for x in words if x])
|
||||||
|
|
||||||
def get_keyword_tree(self, limit=5):
|
def get_keyword_tree(self, limit=5):
|
||||||
thesaurus = aq_parent(self)
|
thesaurus = aq_parent(self)
|
||||||
|
|
Reference in New Issue