Commit 1679609e authored by Michal Čihař's avatar Michal Čihař

Update set in place rather than constructing copy

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 16306348
......@@ -155,7 +155,7 @@ class DictionaryManager(models.Manager):
for analyzer in analyzers:
# Some Whoosh analyzers break on unicode
try:
words = words.union(
words.update(
[token.text for token in analyzer(force_unicode(text))]
)
except UnicodeDecodeError as error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment