This commit is contained in:
Daniel Quinn
2016-02-17 23:07:54 +00:00
parent eb01bcf98b
commit 1e7ece81ee
3 changed files with 18 additions and 9 deletions

View File

@@ -273,11 +273,7 @@ class Consumer(object):
def _store(self, text, doc):
sender, title, tags, file_type = self._guess_attributes_from_name(doc)
tags = list(tags)
lower_text = text.lower()
relevant_tags = set(
[t for t in Tag.objects.all() if t.matches(lower_text)] + tags)
relevant_tags = set(list(Tag.match_all(text)) + list(tags))
stats = os.stat(doc)